From e97396e56c68da470378ff0876c8fee809acd239 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 6 Feb 2020 15:57:20 +0300 Subject: [PATCH] mempool: test addition of conflicting tx to the pool --- pkg/core/mempool/mem_pool_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/core/mempool/mem_pool_test.go b/pkg/core/mempool/mem_pool_test.go index 3e846344b..6575ccf4e 100644 --- a/pkg/core/mempool/mem_pool_test.go +++ b/pkg/core/mempool/mem_pool_test.go @@ -80,6 +80,7 @@ func TestMemPoolVerify(t *testing.T) { // The same input as in tx2. tx3.Inputs = append(tx3.Inputs, transaction.Input{PrevHash: inhash2, PrevIndex: 0}) require.Equal(t, false, mp.Verify(tx3)) + require.Error(t, mp.Add(tx3, &FeerStub{})) } func newMinerTX() *transaction.Transaction {