mempool: test addition of conflicting tx to the pool

This commit is contained in:
Roman Khimov 2020-02-06 15:57:20 +03:00
parent 1133bbe584
commit e97396e56c

View file

@ -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 {