public class Trier
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Function0<AergoClient> |
clientProvider |
protected org.slf4j.Logger |
logger |
protected NonceProvider |
nonceProvider |
protected TryCountAndInterval |
tryCountAndInterval |
Constructor and Description |
---|
Trier() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isChainIdHashException(RpcException e) |
protected boolean |
isNonceRelatedException(RpcException e) |
TxHash |
request(Signer signer,
Function2<Signer,java.lang.Long,TxHash> transactionRequester)
Try transaction request with a requester.
|
protected void |
syncChainIdHash(AergoClient client) |
protected void |
syncNonceOf(AccountAddress address) |
protected final org.slf4j.Logger logger
protected TryCountAndInterval tryCountAndInterval
protected NonceProvider nonceProvider
protected Function0<AergoClient> clientProvider
public TxHash request(Signer signer, Function2<Signer,java.lang.Long,TxHash> transactionRequester)
transactionRequester
fails, retry after
refreshing nonce.signer
- a signer to sign transactiontransactionRequester
- a transaction requesterprotected boolean isNonceRelatedException(RpcException e)
protected boolean isChainIdHashException(RpcException e)
protected void syncNonceOf(AccountAddress address)
protected void syncChainIdHash(AergoClient client)