public interface BlockchainTransactionService
| Modifier and Type | Method and Description |
|---|---|
void |
checkPendingTransactions(long pendingTransactionMaxDays)
checks transactions marked as pending in DB and verify their status on
blockchain.
|
void |
checkPendingTransactionValidity(TransactionDetail transactionDetail)
Checks that a transaction marked as pending in internal database is valid
and available on blockchain.
|
void |
checkTransactionStatusOnBlockchain(String transactionHash,
boolean pendingTransactionFromDatabase)
Checks transaction identified by its hash on blockchain to see if it's
mined.
|
long |
refreshBlockchainGasPrice()
Refreshes gas price from blockchain and cache it
|
void |
scanNewerBlocks()
Scans newly mined blocks in Blockchain to verify if there are transactions
on configured token or wallet.
|
void |
sendRawTransactions()
Sends raw transactions to blockchain
|
void scanNewerBlocks()
throws IOException
IOExceptionvoid sendRawTransactions()
void checkTransactionStatusOnBlockchain(String transactionHash, boolean pendingTransactionFromDatabase)
transactionHash - pendingTransactionFromDatabase - void checkPendingTransactionValidity(TransactionDetail transactionDetail)
WalletTransactionService.getPendingTransactionMaxDays(), then mark
it as 'failed'. I will be remade as 'Success' if
ContractTransactionVerifierJob detects a Contract LogtransactionDetail - long refreshBlockchainGasPrice()
throws IOException
IOException - when an error occurs while requesting gas price from
blockchainvoid checkPendingTransactions(long pendingTransactionMaxDays)
pendingTransactionMaxDays - mas days to keep transactions not sent on
blockchain as pending. If equals or less than 0, no duration checkCopyright © 2003–2019 eXo Platform SAS. All rights reserved.