mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
bug fixes, ensure import invariant is correct
This commit is contained in:
@@ -196,7 +196,13 @@ XRPNotCreated::finalize(
|
||||
<< " drops_: " << drops_
|
||||
<< " dropsAdded - fee.drops(): " << dropsAdded - fee.drops();
|
||||
|
||||
return (drops_ == dropsAdded.drops() - fee.drops());
|
||||
int64_t drops = dropsAdded.drops() - fee.drops();
|
||||
|
||||
// catch any overflow or funny business
|
||||
if (drops > dropsAdded.drops() || drops > fee.drops())
|
||||
return false;
|
||||
|
||||
return drops_ == drops;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user