1
0
Fork 0
forked from lthn/blockchain

fixed test for proper creating wrong tx(redeem after expiration)

This commit is contained in:
cryptozoidberg 2021-02-20 21:51:35 +01:00
parent 71708ca673
commit ef2f523bf1
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -382,7 +382,7 @@ bool atomic_test_wrong_redeem_wrong_refund::c1(currency::core& c, size_t ev_inde
CHECK_AND_FORCE_ASSERT_MES(htlcs.size() == 1, false, "Epected htlc not found");
currency::transaction result_redeem_tx = AUTO_VAL_INIT(result_redeem_tx);
alice_c_wlt_instance->redeem_htlc(htlcs.front().tx_id, alice_origin_b, result_redeem_tx);
c.get_tx_pool().clear();
c.get_blockchain_storage().truncate_blockchain(c.get_blockchain_storage().get_current_blockchain_size() - 8);
//try to submit wrong transaction that do refund before expiration