From a3cc6ab0417b046fdd81110100c24af2dfbc0447 Mon Sep 17 00:00:00 2001 From: frankcrypto Date: Tue, 13 Aug 2024 08:19:58 +0800 Subject: [PATCH] revert --- core/blockchain/validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain/validate.go b/core/blockchain/validate.go index 90e720a1..350f963c 100644 --- a/core/blockchain/validate.go +++ b/core/blockchain/validate.go @@ -202,7 +202,7 @@ func (b *BlockChain) checkBlockSanity(block *types.SerializedBlock, timeSource m // merkle trees above. existingTxHashes := make(map[hash.Hash]struct{}) - allTransactions := append(transactions,[]*types.Tx{}...) + allTransactions := append(transactions) for _, tx := range allTransactions { h := tx.Hash()