diff --git a/chainstate/requirements_test.go b/chainstate/requirements_test.go index 69508236..ae4ef99d 100644 --- a/chainstate/requirements_test.go +++ b/chainstate/requirements_test.go @@ -33,6 +33,18 @@ func Test_checkRequirement(t *testing.T) { assert.Equal(t, true, success) }) + t.Run("found in mempool - whatsonchain", func(t *testing.T) { + success := checkRequirement(requiredInMempool, onChainExample1TxID, &TransactionInfo{ + BlockHash: "", + BlockHeight: 0, + Confirmations: 0, + ID: onChainExample1TxID, + MinerID: "", + Provider: "whatsonchain", + }) + assert.Equal(t, true, success) + }) + t.Run("not in mempool - mAPI", func(t *testing.T) { success := checkRequirement(requiredInMempool, onChainExample1TxID, &TransactionInfo{ BlockHash: "",