1
0
Fork 0
forked from lthn/blockchain

minor improvements (construct_tx, construct_tx_out)

This commit is contained in:
sowle 2025-04-01 05:49:35 +03:00
parent fb0ba230ea
commit 2fd53a59cb
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -1233,6 +1233,7 @@ namespace currency
if (tx.version > TRANSACTION_VERSION_PRE_HF4)
{
// create tx_out_zarcanum
CHECK_AND_ASSERT_MES(de.addr.size() != 0, false, "cannot construct tx output: empty addr vector was given");
CHECK_AND_ASSERT_MES(de.addr.size() == 1, false, "zarcanum multisig not implemented for tx_out_zarcanum yet");
// TODO @#@# implement multisig support
@ -2407,6 +2408,7 @@ namespace currency
tx.vout.clear();
tx.extra = extra;
tx.signatures.clear();
tx.proofs.clear();
tx.version = ftp.tx_version;
if (tx.version >= TRANSACTION_VERSION_POST_HF5)
@ -2417,7 +2419,7 @@ namespace currency
if (flags != 0)
set_tx_flags(tx, flags);
//generate key pair
if (expiration_time != 0)
set_tx_expiration_time(tx, expiration_time);
}