From 8029ed7e05bd9e366492ea3e1feea7d3bb073f17 Mon Sep 17 00:00:00 2001 From: fengzi Date: Wed, 9 May 2018 18:52:43 +0800 Subject: [PATCH] core:block.go fix frombacklist delete bug on fly to USA --- core/block.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/block.go b/core/block.go index 11db2d899..ac6764145 100644 --- a/core/block.go +++ b/core/block.go @@ -633,7 +633,9 @@ func (block *Block) CollectTransactions(deadlineInMs int64) { // thus, when we find a transaction with a very large nonce // we won't try to pack other transactions from the same account in the block // the account will be in our from blacklist util the block is sealed - fromBlacklist.Delete(tx.to.address.Hex()) + if !byteutils.Equal(tx.to.address, tx.from.address) { + fromBlacklist.Delete(tx.to.address.Hex()) + } toBlacklist.Delete(tx.to.address.Hex()) } else { fromBlacklist.Delete(tx.from.address.Hex())