-
Halver[m]
<Inge> "check block height against..." <- Thanks. I may do that, but first I wanted to be sure that there the timestamp from _get_last_block_header_ is the more recent timestamp from all the available monerod RPCs ?
-
Halver[m]
> <@Inge:libera.chat> check block height against some other nodes?
-
Halver[m]
* Thanks.
-
Halver[m]
I may do that, but first I wanted to be sure that the timestamp from _get_last_block_header_ is the more recent timestamp from all the available monerod RPCs (?)
-
merope
Doesn't the node already check against all other nodes via the p2p protocol? But it does so through the block height, not the timestamp
-
merope
If you really wanted to check timestamps, I'd just grab the latest one from the top block and check that it's no more than 30mins-1h behind the current time
-
moneromooo
IIRC the max "jitter" is 2 hours.
-
Halver[m]
Thanks for the informations.
-
Halver[m]
I have noticed that the block height returned from get_last_block_header can be easily 4 or 5 blocks behind what status says in monerod.
-
Halver[m]
I wonder what's the reason for this lag (?)
-
Halver[m]
I'll check if the timestamp from the top block is better/more recent.
-
moneromooo
Does get_info also show this same lag ?
-
moneromooo
The one thing I can think of is that it might use a longer lived read txn that has a view of an older db state, but in theory it should also apply to status.
-
Halver[m]
I'll check those RPCs and try to evaluate the lags which each.
-
Halver[m]
s/which/for/
-
Halver[m]
I didn't notice, but get_info has :
-
Halver[m]
synchronized - boolean; States if the node is synchronized (true) or not (false).
-
tusko
synchronized nodes are for squares
-
lookaside[m]
Yesterday I asked in the monero room how I might send a transfer where the fee is deducted from the amount I want to send, i.e. make it so exactly some amount leaves the wallet. This is what I came up with using the monero-python library, wondering if it looks reasonable:... (full message at
libera.ems.host/_matrix/media/r0/do…817a178308048bad05bd387565f937efcee)
-
lookaside[m]
I'm also curious under what conditions it could fail - I'm guessing that when I request the 2nd transfer there's a chance that the fee changes and I would have to recalculate everything
-
selsta
.merges
-
xmr-pr
8041 8044 8101
-
Elijah[m]
> <@lookaside:matrix.org> Yesterday I asked in the monero room how I might send a transfer where the fee is deducted from the amount I want to send, i.e. make it so exactly some amount leaves the wallet. This is what I came up with using the monero-python library, wondering if it looks reasonable:... (full message at
libera.ems.host/_matrix/media/r0/do…390baa519fe711d724ebf511dc99ccb7073)
-
Elijah[m]
*
-
Elijah[m]
I'm going to presume you want to guarantee sending X monero post fees? If so you would want to add the transaction fee to the amount and not subtract it. That way sending X + T monero results in X monero being sent rather than sending X - T monero.
-
Elijah[m]
s/I'm going to presume you want to guarantee sending X monero post fees? If so you would want to add the transaction fee to the amount and not subtract it//
-
Elijah[m]
I'm going to presume you want to guarantee sending X monero post fees? If so you would want to add the transaction fee to the amount and not subtract it. That way sending X + T monero results in X monero being sent rather than sending X - T monero.
-
Elijah[m]
s/and/rather/, s/not/than/, s/subtract/subtracting/