problem: sporadic unit-test failure

This commit is contained in:
Igor Artamonov
2020-05-03 20:06:11 -04:00
parent 3fcc2e6d52
commit 3a13fb3bd5
4 changed files with 32 additions and 20 deletions

View File

@@ -209,11 +209,11 @@ class TrackEthereumTx(
}
}
fun updateFromBlock(upstream: Upstream<EthereumApi>, tx: TxDetails, it: TransactionJson): Mono<TxDetails> {
return if (it.blockNumber != null && it.blockHash != null && it.blockHash != ZERO_BLOCK) {
fun updateFromBlock(upstream: Upstream<EthereumApi>, tx: TxDetails, blockTx: TransactionJson): Mono<TxDetails> {
return if (blockTx.blockNumber != null && blockTx.blockHash != null && blockTx.blockHash != ZERO_BLOCK) {
val updated = tx.withStatus(
blockHash = it.blockHash,
height = it.blockNumber,
blockHash = blockTx.blockHash,
height = blockTx.blockNumber,
found = true,
mined = true,
confirmations = 1