Skip to content

Commit

Permalink
core:block.go fix frombacklist delete bug on fly to USA
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzi committed May 9, 2018
1 parent e25246b commit 8029ed7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 8029ed7

Please sign in to comment.