mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 02:25:53 +00:00
fix ledger header update
This commit is contained in:
@@ -1262,9 +1262,8 @@ Import::doApply()
|
|||||||
|
|
||||||
|
|
||||||
// update the ledger header
|
// update the ledger header
|
||||||
XRPAmount totalBurn =
|
STAmount added = finalBal - startBal;
|
||||||
XRPAmount{(burn.xrp() + (create ? bonusAmount : beast::zero))};
|
ctx_.rawView().rawDestroyXRP(-added.xrp());
|
||||||
ctx_.rawView().rawDestroyXRP(-totalBurn);
|
|
||||||
|
|
||||||
return tesSUCCESS;
|
return tesSUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user