-
chaser[m]
what could be the reason for `--do-not-relay` not working for me? it just broadcasts the transaction as usual.
-
lous1F
anyone around an OpenAlias dev?
-
lous1F
I tested it earlier, found new things
-
lous1F
that should be put onto OpenAlias.org
-
moneromooo
chaser[m]: how did you send this tx ?
-
xorpd[m]
Hi, I am searching for the "correct" way to check the amounts of confirmations for an incoming Monero payment (by payment_id), using the wallet rpc and daemon rpc api. Currently I am using get_bulk_payments() [wallet rpc], followed by a call to get_height() [wallet rpc]. I deduce the amount of confirmations by subtracting the block heights.
-
xorpd[m]
This method seems a little bit hacky to me, I was wondering what is the correct way to do this.
-
xorpd[m]
Here is some of my reasoning against the way I am currently doing this: 1. Maybe get_height() represents the height of a block from an alternative chain that doesn't contain the incoming transaction? Is this scenario possible?
-
xorpd[m]
2. There is a possible "time of check time of use" issue here. If get_bulk_payments() returned a certain payment, and until I get to call get_height(), there is an alternative chain which does not include the transaction.
-
xorpd[m]
A reasonable solution would probably be to check all of the above in one rpc call, but I couldn't find the way to do it.
-
moneromooo
Some RPC calls are racy in the first place.
-
moneromooo
IIRC you get number of confirmations in get_transfers or get_somehingsimilar.
-
chaser[m]
<moneromooo> "chaser: how did you send this tx..." <- manually, from monero-wallet-cli, which ran with flags `--do-not-relay --no-dns --wallet-file /path/to/file`
-
chaser[m]
it ignores --do-not-relay for transfers and sweeps too
-
moneromooo
Was it relayed at once, or hours later ?
-
chaser[m]
my impression is it was relayed at once, right away, but I didn't check. what I'm sure of is that it didn't write the tx to a local rawtx file, as it used to
-
moneromooo
--do-not-relay is unrelated to writing to a local file AFAIK.
-
moneromooo
Feel free to file a bug about it, it used to work.
-
chaser[m]
hmmm. it's been a while since I last used --do-not-relay so maybe its behavior was changed? about a 1-1.5 years ago it 1) gave the response in the CLI that the raw transaction was written into a file, and 2) indeed there was a file "rawtx" created next to the monero-wallet-cli binary that contained the transaction in hex.
-
chaser[m]
thanks, I'll check the docs and file an issue is this functionality is no lo longer present
-
moneromooo
Reading the code, it looks like the wallet has a --do-not-relay, which does what you say. I only knew of the daemon --do-not-relay.
-
moneromooo
So ignore what I said, I was wrong.
-
moneromooo
(except the "please file a bug" line, that one was not wrong :))
-
chaser[m]
got it. actually this has been an issue for me for a few months so in September I filed an issue:
monero-project/monero #7947 . if others could test the behavior and comment there whether they can replicate it, it would be great
-
dynemeloun
i used --do-not-relay 2 days before, it worked and created raw_monero_tx
-
dynemeloun
on wallet-cli
-
chaser[m]
then could my monerod flags cause the problem? monerod runs locally with `--data-dir /path/to/datadir/ --p2p-bind-port 12345 --disable-dns-checkpoints --detach`
-
dynemeloun
I used this: ~/documents/money/monero-x86_64-linux-gnu-v0.17.2.0/./monero-wallet-cli --wallet-file ~/documents/money/monero-x86_64-linux-gnu-v0.17.2.0/cake --daemon-host 192.168.1.140 --daemon-port 18089 --trusted-daemon --do-not-relay
-
dynemeloun
version is v0.17.3.0-release, i just did not rename folder
-
chaser[m]
<dynemeloun> "I used this: ~/documents/money/..." <- same version and OS here. the only meaningful differences I see is that you don't use `--no-dns` and use `--trusted-daemon`. could those affect `--do-not-relay`?
-
dynemeloun
this works ok: ~/documents/money/monero-x86_64-linux-gnu-v0.17.2.0/./monero-wallet-cli --wallet-file ~/documents/money/monero-x86_64-linux-gnu-v0.17.2.0/cake --daemon-host 192.168.1.140 --daemon-port 18089 --trusted-daemon --do-not-relay --no-dns
-
dynemeloun
this too works ok ~/documents/money/monero-x86_64-linux-gnu-v0.17.2.0/./monero-wallet-cli --wallet-file ~/documents/money/monero-x86_64-linux-gnu-v0.17.2.0/cake --daemon-host 192.168.1.140 --daemon-port 18089 --do-not-relay --no-dns
-
dynemeloun
both made raw_monero_tx
-
chaser[m]
thanks for checking! then I wonder what else could cause this
-
chaser[m]
it sure is not the wallet flags
-
SerHack
I do not remember correctly, are monero binaries statically compiled or dynamically linked?
-
hyc
release binaries are static
-
hyc
they must be, to be usable on multiple distros
-
SerHack
thanks hyc
-
hyc
they still use dynamic libc. but just about all other dependencies are static
-
DeanGuss
Big thank you to everybody involved with getting tor p2p support integrated in the latest release! Been waiting *soooo* long for that! THANK YOU!!!!
-
DeanGuss
monero-project/monero #6950 You can finally close this because torsocks is no longer needed
-
DeanGuss
-
DeanGuss
to reflect the fact that torsocks is not required any longer
-
xorpd[m]
<moneromooo> "Some RPC calls are racy in the..." <- Is there a guide explaining which ones are recommended? Usually I wouldn't care about racy API, but when it comes to people's money I would like to be sure I am doing the correct thing before pushing to production.
-
xorpd[m]
<moneromooo> "IIRC you get number of confirmat..." <- Thanks! get_transfer_by_txid() of the wallet rpc looks like something that I can use.
-
moneromooo
Not as far as I know.
-
moneromooo
I was thinking of getinfo, which can return height and diff that aren't in sync.
-
moneromooo
Which reminds me, I added a lock at some point which goes some way to fixing this... Might actually have fixed it...
-
moneromooo
Nope, didn't fix getinfo at least. I think I originally did it for Townforge, but it could be retrofitted to monero without fuss. LockedTXN.
-
jberman[m]
I did that for getinfo + some other functions here:
monero-project/monero #7936
-
moneromooo
Nice, thanks :)
-
BigmenPixel[m]
-
BigmenPixel[m]
* Hello. Why is monero-wallet-gui not starting? (0.17.3.0)... (full message at
libera.ems.host/_matrix/media/r0/do…229ba4f7c8899e6eedd15f4f2f9c97801b2)
-
moneromooo
What architecture ?
-
BigmenPixel[m]
moneromooo: x86_64
-
moneromooo
Ouch. Dunno then.
-
moneromooo
Did you compile it yourself ?
-
BigmenPixel[m]
moneromooo: No. It's precompiled flatpak and archlinux packages
-
moneromooo
Ah, if precompiled from not getmonero.org, possibly it got compiled with insns specific to a later family.
-
moneromooo
Do you have an old CPU ?
-
moneromooo
Old being defined as older than the person who built that precompiled binary :D
-
BigmenPixel[m]
moneromooo: Intel Pentium 5405U (2019 like...)
-
moneromooo
OK, sounds pretty recent. Out of ideas then, sorry.
-
moneromooo
Pentium sounds very 1999 though.
-
BigmenPixel[m]
Sadly... :(
-
BigmenPixel[m]
-
BigmenPixel[m]
Q1, 2019
-
BigmenPixel[m]
Time to change CPU :)
-
chaser[m]
<DeanGuss> "
github.com/monero-..." <- with that, what is now the best way to torify Monero?