Closed greenhat closed 1 year ago
How would this be accomplished?
Do you put date/time for the last "Datapoint published successfully" in some variable and then check if it's been more than X minutes since last "Datapoint published successfully" then okay to output "Not enough boxes to spend" or do you have another idea?
I could work on this one since I need something to work on :)
Maybe we can use this with some API endpoint later to show "isHealthy" status for the oracle?
This error "not enough boxes to spend" is thrown when the node cannot find all the input boxes because the previous tx already spent some of them (tx was included in the block after oracle asked the node's wallet for unspent boxes the prepare the new tx).
I believe we can ignore it completely because when the wallet is out of coins, we should fail much earlier when we build the tx in the oracle. It'd be great if you could simulate a node running out of coins with log_level: TRACE
.