1
0
Fork 0
forked from lthn/blockchain

construct_miner_tx: explicit asset_id for PoS fixed

This commit is contained in:
sowle 2023-04-04 14:04:42 +02:00
parent 990f99767d
commit 228d73a39c
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -355,6 +355,7 @@ namespace currency
if (pe.stake_unlock_time && pe.stake_unlock_time > height + CURRENCY_MINED_MONEY_UNLOCK_WINDOW)
stake_lock_time = pe.stake_unlock_time;
destinations.push_back(tx_destination_entry(pe.amount, stakeholder_address, stake_lock_time));
destinations.back().explicit_native_asset_id = true; // don't use asset id blinding as it's obvious which asset it is
}
CHECK_AND_ASSERT_MES(destinations.size() <= CURRENCY_TX_MAX_ALLOWED_OUTS || height == 0, false, "Too many outs (" << destinations.size() << ")! Miner tx can't be constructed.");