forked from Qortal/qortal
Revert "Removed getWalletTransactions() synchronization. Again, can be re-added later."
This reverts commit 70c864bc2f
.
This commit is contained in:
parent
dda2316884
commit
b7b66f6cba
@ -342,6 +342,7 @@ public abstract class Bitcoiny implements ForeignBlockchain {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<SimpleTransaction> getWalletTransactions(String key58) throws ForeignBlockchainException {
|
public List<SimpleTransaction> getWalletTransactions(String key58) throws ForeignBlockchainException {
|
||||||
|
synchronized (this) {
|
||||||
Context.propagate(bitcoinjContext);
|
Context.propagate(bitcoinjContext);
|
||||||
|
|
||||||
Wallet wallet = walletFromDeterministicKey58(key58);
|
Wallet wallet = walletFromDeterministicKey58(key58);
|
||||||
@ -408,6 +409,7 @@ public abstract class Bitcoiny implements ForeignBlockchain {
|
|||||||
.map(t -> convertToSimpleTransaction(t, keySet))
|
.map(t -> convertToSimpleTransaction(t, keySet))
|
||||||
.sorted(newestTimestampFirstComparator).collect(Collectors.toList());
|
.sorted(newestTimestampFirstComparator).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected SimpleTransaction convertToSimpleTransaction(BitcoinyTransaction t, Set<String> keySet) {
|
protected SimpleTransaction convertToSimpleTransaction(BitcoinyTransaction t, Set<String> keySet) {
|
||||||
long amount = 0;
|
long amount = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user