-
dsc_
does anyone know the reason why rapidjson is a submodule
-
sech1
Because it's a 3rd-party repository. Submodules make it easy to get new updates and track commit history between repositories.
-
dsc_
shouldnt vendor it like that, use OS libs instead and have CMake's find_package enforce version requirements, maybe I am overlooking something
-
dsc_
anyway its not important, just wondering
-
dsc_
i took some time to rewrite all the CMake into modern style cmake
-
dsc_
will create a PR this weekend as a proof-of-concept
-
dsc_
i yanked out most stuff and started from scratch
-
dsc_
in favor of Monero installing
-
dsc_
"properly"
-
dsc_
as well as easing up integrating Monero into your own project
-
dsc_
(e.g anyone that uses wallet2)
-
dsc_
note the PR is just a POC, not for merging. upstreaming it in case its useful for someone
-
xFFFC0000
dsc_ quite the contrary. For reproducible builds (which is a security necessity), you want to pull everything yourself. And depends less and less on environment.
-
m-relay
<vkg1tyfj:matrix.org> huh so I missed an "s".. that's interesting and unexpected lol
-
m-relay
<vkg1tyfj:matrix.org> I just tried this but getBlocksByHeight throws "fetch failed" in MoneroDaemonRpc.js:1639:22. Same error with getBlocksByRange. The getBlockByHeight succeeds. Any ideas what I'm doing wrong?
-
m-relay
<vkg1tyfj:matrix.org> Example code:
-
m-relay
<vkg1tyfj:matrix.org> (async () => {
-
m-relay
<vkg1tyfj:matrix.org> const daemon = await connectToDaemonRpc("
nodes.hashvault.pro:18081");
-
m-relay
<vkg1tyfj:matrix.org> console.log("getBlockByHeight:")
-
m-relay
<vkg1tyfj:matrix.org> const block = await daemon.getBlockByHeight(3074677); // works
-
m-relay
<vkg1tyfj:matrix.org> console.log(block);
-
m-relay
<vkg1tyfj:matrix.org> console.log("getBlocksByHeight:")
-
m-relay
<vkg1tyfj:matrix.org> const blocks = await daemon.getBlocksByHeight([3074677]); // fails with "fetch failed"
-
m-relay
<vkg1tyfj:matrix.org> console.log(blocks);
-
m-relay
<vkg1tyfj:matrix.org> })();
-
m-relay
<vkg1tyfj:matrix.org> I just tried this but getBlocksByHeight throws "fetch failed" in MoneroDaemonRpc.js:1639:22. Same error with getBlocksByRange. The getBlockByHeight succeeds. Any ideas what I'm doing wrong?
-
m-relay
<vkg1tyfj:matrix.org> Example code:
-
m-relay
<vkg1tyfj:matrix.org> ```
-
m-relay
<vkg1tyfj:matrix.org> (async () => {
-
m-relay
<vkg1tyfj:matrix.org> const daemon = await connectToDaemonRpc("
nodes.hashvault.pro:18081");
-
m-relay
<vkg1tyfj:matrix.org> console.log("getBlockByHeight:")
-
m-relay
<vkg1tyfj:matrix.org> const block = await daemon.getBlockByHeight(3074677); // works
-
m-relay
<vkg1tyfj:matrix.org> console.log(block);
-
m-relay
<vkg1tyfj:matrix.org> console.log("getBlocksByHeight:")
-
m-relay
<vkg1tyfj:matrix.org> const blocks = await daemon.getBlocksByHeight([3074677]); // fails with "fetch failed"
-
m-relay
<vkg1tyfj:matrix.org> console.log(blocks);
-
m-relay
<vkg1tyfj:matrix.org> ```
-
m-relay
<vkg1tyfj:matrix.org> I just tried this but getBlocksByHeight throws "fetch failed" in MoneroDaemonRpc.js:1639:22. Same error with getBlocksByRange. The getBlockByHeight succeeds. Any ideas what I'm doing wrong?
-
m-relay
<vkg1tyfj:matrix.org> Example code:
-
m-relay
<vkg1tyfj:matrix.org> ```
-
m-relay
<vkg1tyfj:matrix.org> (async () => {
-
m-relay
<vkg1tyfj:matrix.org> const daemon = await connectToDaemonRpc("
nodes.hashvault.pro:18081");
-
m-relay
<vkg1tyfj:matrix.org> console.log("getBlockByHeight:")
-
m-relay
<vkg1tyfj:matrix.org> const block = await daemon.getBlockByHeight(3074677); // works
-
m-relay
<vkg1tyfj:matrix.org> console.log(block);
-
m-relay
<vkg1tyfj:matrix.org> console.log("getBlocksByHeight:")
-
m-relay
<vkg1tyfj:matrix.org> const blocks = await daemon.getBlocksByHeight([3074677]); // fails with "fetch failed"
-
m-relay
<vkg1tyfj:matrix.org> console.log(blocks);
-
m-relay
<vkg1tyfj:matrix.org> })();
-
m-relay
<vkg1tyfj:matrix.org> ```
-
m-relay
<vkg1tyfj:matrix.org> I just tried this but getBlocksByHeight throws "fetch failed" in MoneroDaemonRpc.js:1639:22. Same error with getBlocksByRange. The getBlockByHeight succeeds. Any ideas what I'm doing wrong?
-
m-relay
<vkg1tyfj:matrix.org> Example code:
-
m-relay
<vkg1tyfj:matrix.org> ```
-
m-relay
<vkg1tyfj:matrix.org> (async () => {
-
m-relay
<vkg1tyfj:matrix.org> const daemon = await connectToDaemonRpc("nodes.hashvault.pro:18081");
-
m-relay
<vkg1tyfj:matrix.org> console.log("getBlockByHeight:")
-
m-relay
<vkg1tyfj:matrix.org> const block = await daemon.getBlockByHeight(3074677); // works
-
m-relay
<vkg1tyfj:matrix.org> console.log(block);
-
m-relay
<vkg1tyfj:matrix.org> console.log("getBlocksByHeight:")
-
m-relay
<vkg1tyfj:matrix.org> const blocks = await daemon.getBlocksByHeight([3074677]); // fails with "fetch failed"
-
m-relay
<vkg1tyfj:matrix.org> console.log(blocks);
-
m-relay
<vkg1tyfj:matrix.org> })();
-
m-relay
<vkg1tyfj:matrix.org> ```
-
m-relay
<plowsof:matrix.org> vkg1tyfj: use a paste bin for code and dont edit large comments as they cause spam IRC side
-
m-relay
<plowsof:matrix.org> best suited for #monero-community-dev:monero.social (if this is monero-js/ts)
-
m-relay
<vkg1tyfj:matrix.org> sorry guys didn't know :/
-
m-relay
<vkg1tyfj:matrix.org> yes, monero-ts.. i joined community dev
-
dsc_
xFFFC0000
-
dsc_
reproducible builds have nothing to do with vendoring libs or not, or having sane CMake. For reproducible you just prepare your system such it is able to compile that, similar to static building.
-
dsc_
xFFFC0000 sorry if I sound passive aggressive, I just woke up and spent too much time in CMake this week :P
-
selsta
some of the libs were vendored because anonimal maintained forks with security patches added, since he isn't around anymore it kinda became pointless
-
selsta
others are just vendored for historical reasons and no one bothered to change it
-
dsc_
right
-
selsta
at least rapidjson and miniupnpc can be removed
-
dsc_
vendoring libs is not a big issue, i am just being pedantic. In the case of rapidjson, its pinned to a commit from 6 years ago, and wondered if there was a specific reason
-
dsc_
Monero seems to compile fine against newer versions of rapidjson
-
selsta
we should probably update the submodule
-
selsta
.merges
-
xmr-pr
8396 8488 9252
-
dsc_
selsta: what im trying to do is make Monero headers/libs install in, for example, /usr/local/
-
dsc_
so that people who want to consume those libs (libwallet_merged.a for example) only have to do `find_package(Monero 0.18.3.2 REQUIRED)`
-
dsc_
if we look at any project that uses wallet2, they currently always need to include stuff like this
github.com/woodser/monero-cpp/blob/master/CMakeLists.txt#L32
-
dsc_
while instead those include paths should be provided by a CMake config and not at all be managed by the consuming project