Fixed hard code 3 mns address only for testnet.

This commit is contained in:
parmarrushabh 2018-12-14 11:17:44 +05:30
parent 08843fa176
commit 315c400748

View file

@ -585,10 +585,10 @@ func (self *worker) commitNewWork() {
}
// won't grasp txs at checkpoint
var (
txs *types.TransactionsByPriceAndNonce
txs *types.TransactionsByPriceAndNonce
specialTxs types.Transactions
)
if self.config.XDPoS != nil && header.Number.Uint64() % self.config.XDPoS.Epoch != 0 {
if self.config.XDPoS != nil && header.Number.Uint64()%self.config.XDPoS.Epoch != 0 {
pending, err := self.eth.TxPool().Pending()
if err != nil {
log.Error("Failed to fetch pending transactions", "err", err)
@ -598,7 +598,6 @@ func (self *worker) commitNewWork() {
}
work.commitTransactions(self.mux, txs, specialTxs, self.chain, self.coinbase)
// compute uncles for the new block.
var (
uncles []*types.Header