Replace calls to GetHash() with GetTxid() for transaction objects.
Where the caller intends to receive a transaction id and not a double SHA256 hash.
This commit is contained in:
@@ -72,7 +72,7 @@ BOOST_AUTO_TEST_CASE(multisig_verify)
|
||||
txTo[i].vin.resize(1);
|
||||
txTo[i].vout.resize(1);
|
||||
txTo[i].vin[0].prevout.n = i;
|
||||
txTo[i].vin[0].prevout.hash = txFrom.GetHash();
|
||||
txTo[i].vin[0].prevout.hash = txFrom.GetTxid();
|
||||
txTo[i].vout[0].nValue = 1;
|
||||
}
|
||||
|
||||
@@ -306,7 +306,7 @@ BOOST_AUTO_TEST_CASE(multisig_Sign)
|
||||
txTo[i].vin.resize(1);
|
||||
txTo[i].vout.resize(1);
|
||||
txTo[i].vin[0].prevout.n = i;
|
||||
txTo[i].vin[0].prevout.hash = txFrom.GetHash();
|
||||
txTo[i].vin[0].prevout.hash = txFrom.GetTxid();
|
||||
txTo[i].vout[0].nValue = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user