mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 14:54:15 +00:00
Add crap WalletTool hack to work around issue with Netty.
This commit is contained in:
parent
e449c77026
commit
f8e5b17b85
@ -470,6 +470,11 @@ public class WalletTool {
|
||||
// network. Once propagation is complete and we heard the transaction back from all our peers, it will
|
||||
// be committed to the wallet.
|
||||
peers.broadcastTransaction(t).get();
|
||||
if (peers.getMinBroadcastConnections() == 1) {
|
||||
// Crap hack to work around some issue with Netty where the write future
|
||||
// completes before the remote peer actually hears the message.
|
||||
Thread.sleep(5000);
|
||||
}
|
||||
System.out.println(t.getHashAsString());
|
||||
} catch (BlockStoreException e) {
|
||||
throw new RuntimeException(e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user