mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2026-06-04 12:26:53 +00:00
Add method for directly setting a transaction's balance
This commit is contained in:
@@ -53,4 +53,10 @@ public class SimpleTransaction implements Transaction
|
||||
{
|
||||
return this.addBalance(-amount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBalance(long newBalance)
|
||||
{
|
||||
balance.set(newBalance);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user