From b3c1fe7a33650df6e14ae64bca2a3e8d46664aaa Mon Sep 17 00:00:00 2001 From: Poseidon Date: Mon, 21 Sep 2020 13:46:30 +0800 Subject: [PATCH] duplicate_submit_no_error (#547) --- protocol/tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/tx.go b/protocol/tx.go index 1206916d..55800fe8 100644 --- a/protocol/tx.go +++ b/protocol/tx.go @@ -29,7 +29,7 @@ func (c *Chain) ValidateTx(tx *types.Tx) (bool, error) { bh := c.BestBlockHeader() isOrphan, err := c.validateTx(tx, bh) - if err == nil { + if err == nil && !isOrphan { c.markTransactions(tx) } return isOrphan, err -- 2.11.0