tests: Fuzz currently uncovered code path in TxToUniv(...)

This commit is contained in:
practicalswift 2020-03-10 11:28:10 +00:00
parent 46ef4cfe5f
commit 9f8d74a8c7

View File

@ -108,5 +108,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
}
if (!skip_tx_to_univ) {
TxToUniv(tx, /* hashBlock */ {}, u);
static const uint256 u256_max(uint256S("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));
TxToUniv(tx, u256_max, u);
}
}