-
luigi1111
Kk
-
selsta
.merge+ 9243 9244
-
xmr-pr
Added
-
m-relay
<jz1111:matrix.org> is there an example on how to create the binary request body for `/get_blocks.bin`?
-
m-relay
-
m-relay
<jeffro256:monero.social> You don't need the lock if not multi-threading and `m_http_client` is just an instance of `net::http::client`
-
m-relay
<jeffro256:monero.social> There's other types of pool retrieval like incremental:
github.com/monero-project/monero/bl…/src/wallet/wallet2.cpp#L3591-L3601
-
m-relay
<jz1111:matrix.org> is there a way to do this outside c++?
-
m-relay
<jz1111:matrix.org> is there a bash way to do this? we're using curl to send the `/getblocks.bin` request
-
m-relay
<jeffro256:monero.social> Not easily
-
m-relay
<jeffro256:monero.social> If you know the epee binary format and on-chain serialization format, you can hand-craft the messages yourself
-
m-relay
<jeffro256:monero.social> There might be libraries in the monero ecosystem that do this IDK. Try asking in #monero-community-dev:monero.social
-
m-relay
<jeffro256:monero.social> Why not just use the `get_block` JSONRPC method?
-
m-relay
<neo_00:matrix.org> Hello everyone, I'd like to clarify one point. Is there a way to ensure that when sending a transfer, the remaining part of the input is not locked? Thanks.
-
moneromoooo
No.
-
m-relay
<pcre:matrix.org> C++ has come under a bit of fire lately. Recently, even the White House has fired shots against C++!
-
m-relay
<pcre:matrix.org> Templates were intended as a replacement for the C preprocessor, and are now ... programmable. Template metaprogramming! No, not a joke. Seriously!
-
m-relay
<pcre:matrix.org> Tick to C guys
-
m-relay
<pcre:matrix.org> Stick to C
-
m-relay
<pcre:matrix.org> std::vector was intended as a replacement for C arrays, but operator[] does not do range checking. This makes it worse than C arrays because it looks safer but is not.
-
m-relay
<pcre:matrix.org> std::span was intended as a replacement for pointer arithmetic, and the Microsoft reference implementation that introduced it to the standard committee had mandatory range checking. The standard committee saw this and removed it. As a result, std::span is now worse than pointer arithmetic because it looks safer but is not.
-
m-relay
<pcre:matrix.org> Iterators were intended as a replacement for pointer arithmetic, but not only do they not have range checking, they don't realise when you throw away the container and then do memory corruption. This makes them worse than pointer arithmetic in C, because they look safer but are not.
-
m-relay
<pcre:matrix.org> Why am I telling you all this? Because the C++ community is slowly realising that they have wrapped the car around the tree. The rescue attempts are becoming downright humorous. Bjarne Stroustrup gave a downright grotesque talk on C++ Safety at Cppcon. In comparison, Biden seems fresh and up to the challenge. Stroustrup is still trying to minimise the problem and define it away.
-
moneromoooo
#languagerant is that way ->
-
hyc
lol
-
hyc
but yeah, I agree, stick to C. still more readable and easier to debug than template-ridden code
-
m-relay
<pcre:matrix.org> sorry.
-
sech1
TLDR has Rust been mentioned?
-
m-relay
<gfdshygti53:monero.social> Yes, rust has been mentioned
-
m-relay
<gfdshygti53:monero.social> I personally have some issue with it.
-
m-relay
<gfdshygti53:monero.social> It might be memory safe, but the risk of easy to do supply chain attack is way higher. Yet, not at the level of node-js and python but I assume it will go up with usage.
-
m-relay
<gfdshygti53:monero.social> I think it might be still ok if you audit every crate and every time one get updated
-
m-relay
<gfdshygti53:monero.social> If only that could mitigated it would be great because it's one of the rare language that actually perform really good (afaik it sit between C and C++)
-
hyc
audit every crate - sure, no sweat...
-
m-relay
<sgp_:monero.social> jberman (or others): do you know if the daemon RPC /get-info is still expensive?
-
m-relay
<gfdshygti53:monero.social> Look expensive compared to most other calls
-
m-relay
<gfdshygti53:monero.social> Only get_transactions and get_blocks are more expensive than get_info, look like
-
m-relay
<sgp_:monero.social> So `/get_height` is expected to be significantly less expensive?
-
sech1
yes, it's much faster
-
sech1
XMRig uses it for solo mining (when ZMQ is not enabled)
-
m-relay
<sgp_:monero.social> If I'm understanding correctly, the response `untrusted: false` means that the node is reporting fully synchronized?
-
moneromoooo
untrusted means the data was retrieved from (proxied to) a separate daemon.
-
moneromoooo
Or that the daemon ran in that mode after last startup.
-
m-relay
<sgp_:monero.social> I'm trying to implement the most sensible health checker method. Is there a more efficient zmq endpoint for this? Or is /get_height the best option
-
m-relay
-
m-relay
<gfdshygti53:monero.social> get_info
-
m-relay
-
m-relay
<gfdshygti53:monero.social> get_height
-
m-relay
<gfdshygti53:monero.social> a **lot** faster yeh
-
m-relay
<sgp_:monero.social> Wow
-
sech1
ZMQ lets you know about all new blocks/transactions the moment they are received
-
sech1
and it's almost free for the node (except traffic)
-
m-relay
<sgp_:monero.social> RavFX: what dashboard are you using for that?
-
m-relay
-
luigi1111w
.merges
-
xmr-pr
9243 9244
-
luigi1111w
selsta
-
selsta
luigi1111w: merge these two and tag in an hour or two?
-
luigi1111w
ok
-
selsta
luigi1111w: you can tag
-
selsta
and ping me once done so that i can also bump the gui submodule
-
luigi1111w
selsta done
-
selsta
ty
-
selsta
-
selsta
seems network error
-
luigi1111w
cancel it?
-
selsta
can you cancel and start again?
-
selsta
or not sure what options there are, usually it can be run again
-
luigi1111w
looks like they have to have failed or be canceled
-
selsta
mac one restarted now
-
sech1
Cancel first, then you will have an option to restart
-
selsta
failed again.... network error or appears so, but this time somewhere else
-
luigi1111w
hmm
-
selsta
can you cancel start it again pls if it fails again i'll get the binaries from somewhere else
-
luigi1111w
done
-
selsta
looks good now it went to the build step
-
scoobybejesus