forked from TrueCloudLab/neoneo-go
mempool: test addition of conflicting tx to the pool
This commit is contained in:
parent
1133bbe584
commit
e97396e56c
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ func TestMemPoolVerify(t *testing.T) {
|
||||||
// The same input as in tx2.
|
// The same input as in tx2.
|
||||||
tx3.Inputs = append(tx3.Inputs, transaction.Input{PrevHash: inhash2, PrevIndex: 0})
|
tx3.Inputs = append(tx3.Inputs, transaction.Input{PrevHash: inhash2, PrevIndex: 0})
|
||||||
require.Equal(t, false, mp.Verify(tx3))
|
require.Equal(t, false, mp.Verify(tx3))
|
||||||
|
require.Error(t, mp.Add(tx3, &FeerStub{}))
|
||||||
}
|
}
|
||||||
|
|
||||||
func newMinerTX() *transaction.Transaction {
|
func newMinerTX() *transaction.Transaction {
|
||||||
|
|
Loading…
Reference in a new issue