+ {
+ before: &TxPool{
+ pool: map[bc.Hash]*TxDesc{},
+ utxo: map[bc.Hash]*types.Tx{},
+ eventDispatcher: dispatcher,
+ },
+ after: &TxPool{
+ pool: map[bc.Hash]*TxDesc{
+ testTxs[7].ID: {
+ Tx: testTxs[7],
+ StatusFail: false,
+ },
+ },
+ utxo: map[bc.Hash]*types.Tx{
+ *testTxs[7].ResultIds[0]: testTxs[7],
+ *testTxs[7].ResultIds[1]: testTxs[7],
+ },
+ },
+ addTx: &TxDesc{
+ Tx: testTxs[7],
+ StatusFail: false,
+ },
+ },
+ {
+ before: &TxPool{
+ pool: map[bc.Hash]*TxDesc{},
+ utxo: map[bc.Hash]*types.Tx{},
+ eventDispatcher: dispatcher,
+ },
+ after: &TxPool{
+ pool: map[bc.Hash]*TxDesc{
+ testTxs[7].ID: {
+ Tx: testTxs[7],
+ StatusFail: true,
+ },
+ },
+ utxo: map[bc.Hash]*types.Tx{
+ *testTxs[7].ResultIds[0]: testTxs[7],
+ },
+ },
+ addTx: &TxDesc{
+ Tx: testTxs[7],
+ StatusFail: true,
+ },
+ },