forked from Qortal/qortal
In BTCACCT, use Account to fetch balance instead of direct from DB
This commit is contained in:
parent
d03cca2e76
commit
6be88ac86e
@ -544,7 +544,9 @@ public class BTCACCT {
|
|||||||
tradeData.qortalAtAddress = atAddress;
|
tradeData.qortalAtAddress = atAddress;
|
||||||
tradeData.qortalCreator = Crypto.toAddress(atData.getCreatorPublicKey());
|
tradeData.qortalCreator = Crypto.toAddress(atData.getCreatorPublicKey());
|
||||||
tradeData.creationTimestamp = atData.getCreation();
|
tradeData.creationTimestamp = atData.getCreation();
|
||||||
tradeData.qortBalance = repository.getAccountRepository().getBalance(atAddress, Asset.QORT).getBalance();
|
|
||||||
|
Account atAccount = new Account(repository, atAddress);
|
||||||
|
tradeData.qortBalance = atAccount.getConfirmedBalance(Asset.QORT);
|
||||||
|
|
||||||
ByteBuffer dataByteBuffer = ByteBuffer.wrap(dataBytes);
|
ByteBuffer dataByteBuffer = ByteBuffer.wrap(dataBytes);
|
||||||
byte[] addressBytes = new byte[32];
|
byte[] addressBytes = new byte[32];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user