mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Merge #6340: fix: make 6336 compile in v21.1.x branch, using older CHECK_NONFATAL functionality
a7bbcc823d
fix: make 6336 compile in v21.1.x branch, using older CHECK_NONFATAL functionality (pasta) Pull request description: ## Issue being fixed or feature implemented Resolve build failures when 6336 is back ported ## What was done? Use older functionality of CHECK_NONFATAL ## How Has This Been Tested? built on both branches ## Breaking Changes ## Checklist: _Go over all the following points, and put an `x` in all the boxes that apply._ - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: knst: utACKa7bbcc823d
UdjinM6: utACKa7bbcc823d
(#6339 compiles with this one applied on top of it) kwvg: utACKa7bbcc823d
Tree-SHA512: 17b6d8223f653eaafa6ef9d1a4e8fc14ca1fe1623fbb13d23a9429e87a64c8fae3ddaf6d2d8d5a52138ab712a36949662b38a8a9cbbc5db3618ce24f565f6f2a
This commit is contained in:
parent
bb96df428f
commit
c0ca93cf7a
@ -336,7 +336,9 @@ void TxToUniv(const CTransaction& tx, const uint256& hashBlock, bool include_add
|
|||||||
if (calculate_fee) {
|
if (calculate_fee) {
|
||||||
CAmount fee = amt_total_in - amt_total_out;
|
CAmount fee = amt_total_in - amt_total_out;
|
||||||
if (tx.IsPlatformTransfer()) {
|
if (tx.IsPlatformTransfer()) {
|
||||||
fee = CHECK_NONFATAL(GetTxPayload<CAssetUnlockPayload>(tx))->getFee();
|
auto payload = GetTxPayload<CAssetUnlockPayload>(tx);
|
||||||
|
CHECK_NONFATAL(payload);
|
||||||
|
fee = payload->getFee();
|
||||||
}
|
}
|
||||||
CHECK_NONFATAL(MoneyRange(fee));
|
CHECK_NONFATAL(MoneyRange(fee));
|
||||||
entry.pushKV("fee", ValueFromAmount(fee));
|
entry.pushKV("fee", ValueFromAmount(fee));
|
||||||
|
@ -2426,7 +2426,9 @@ static RPCHelpMan getblockstats()
|
|||||||
CAmount txfee = tx_total_in - tx_total_out;
|
CAmount txfee = tx_total_in - tx_total_out;
|
||||||
|
|
||||||
if (tx->IsPlatformTransfer()) {
|
if (tx->IsPlatformTransfer()) {
|
||||||
txfee = CHECK_NONFATAL(GetTxPayload<CAssetUnlockPayload>(*tx))->getFee();
|
auto payload = GetTxPayload<CAssetUnlockPayload>(*tx);
|
||||||
|
CHECK_NONFATAL(payload);
|
||||||
|
txfee = payload->getFee();
|
||||||
}
|
}
|
||||||
|
|
||||||
CHECK_NONFATAL(MoneyRange(txfee));
|
CHECK_NONFATAL(MoneyRange(txfee));
|
||||||
|
@ -411,7 +411,9 @@ static RPCHelpMan masternode_payments()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (tx->IsPlatformTransfer()) {
|
if (tx->IsPlatformTransfer()) {
|
||||||
nBlockFees += CHECK_NONFATAL(GetTxPayload<CAssetUnlockPayload>(*tx))->getFee();
|
auto payload = GetTxPayload<CAssetUnlockPayload>(*tx);
|
||||||
|
CHECK_NONFATAL(payload);
|
||||||
|
nBlockFees += payload->getFee();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user