1
0
Fork 0
forked from lthn/blockchain

fixed critical bug in altchain validation code

This commit is contained in:
cryptozoidberg 2019-06-04 21:46:56 +03:00
parent 8cd7b03ff5
commit 41cc980023
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -5210,7 +5210,10 @@ bool blockchain_storage::validate_alt_block_input(const transaction& input_tx, s
// TODO: consider checking p->tx for unlock time validity as it's checked in get_output_keys_for_input_with_checks()
// make sure it was actually found
CHECK_AND_ASSERT_MES(pk != null_pkey, false, "Can't determine output public key for offset " << pk_n);
// let's disable this check due to missing equal check in main chain validation code
//TODO: implement more strict validation with next hard fork
//CHECK_AND_ASSERT_MES(pk != null_pkey, false, "Can't determine output public key for offset " << pk_n << " in related tx: " << tx_id << ", out_n = " << out_n);
pub_key_pointers.push_back(&pk);
}