public interface BlockchainTransactionService
| Modifier and Type | Method and Description |
|---|---|
void |
checkPendingTransactions()
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
|
TransactionDetail |
refreshTransactionFromBlockchain(String hash)
This will refresh transaction from blockchain if the transaction is marked
as pending or marked as error
|
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 - TransactionDetail refreshTransactionFromBlockchain(String hash)
hash - hash of transaction to updateTransactionDetail from blockchainvoid 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()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.