Skip to content

Commit

Permalink
Reset requestedTime in case of dry faucet
Browse files Browse the repository at this point in the history
closes #40
  • Loading branch information
ligi committed May 8, 2022
1 parent 5d709fa commit 5be7c36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/org/komputing/fauceth/TransactionSender.kt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ private suspend fun tryCreateAndSendTx(
}

if (txChain.lastSeenBalance!! < tx.value!!.shl(1)) { // TODO improve threshold
meta.requestedTime = 0
return SendTransactionError("Faucet is dry")
}

Expand Down

0 comments on commit 5be7c36

Please sign in to comment.