-
downystreet
I'm having a problem with my node when trying to set it to become public and open port 18089
-
downystreet
When I use my external ip for the rpc bind I'm getting 2 errors
-
downystreet
2020-06-14 00:17:52.726 F Error starting server: Failed to bind IPv4 (set to required)
-
downystreet
2020-06-14 00:17:52.768 E Exception in main! Failed to initialize core RPC server.
-
downystreet
it then shuts down
-
downystreet
when I use my internal ip the daemon will start normally and work fine but I am not able to connect to it with any wallet
-
downystreet
Here are the settings I am using to start it --restricted-rpc --rpc-bind-ip 111.111.111.111 --rpc-bind-port 18089 --confirm-external-bind --public-node --rpc-payment-address 49wNldksjfakldjfkladjfkladjsfklj --rpc-payment-credits 250 --rpc-payment-difficulty 1000
-
Spaceguide
what settings you use in router ?
-
downystreet
i'm port forwarding 18080 and 18089
-
Spaceguide
do you specify the Ip from your machine ?
-
downystreet
yes im using the external ip from my machine that i use to host a webpage and other nodes
-
Spaceguide
I need to set it like external port X ( if needed to Ip ) to internal port Y on internal Ip
-
Spaceguide
not running a public node now, didn't play with it already, waiting on a good server..
-
downystreet5
got disconnected there
-
downystreet5
can anyone here me?
-
hcb
Is the "blob" in the get_block RPC function enough to reconstruct a block? If not, what is it missing?
-
hcb
I know with Bitcoin you can request entire raw blocks via RPC.
-
hcb
I'm working on a project similar to kryptoradio but for Monero.
-
hcb
If I sent only the blobs from the get_block RPC function, could a receiver build the blockchain?
-
moneromooo
Depends what you mean by block. If you want the actual transactions, you need to request them separately (except the coinbase, which is already present).
-
hcb_
I'm trying to get raw binary data for a full block like the result that Bitcoin's getblock RPC function returns when verbosity is 0.
-
hcb_
This is the Bitcoin RPC function I'm trying to find for Monero.
bitcoin-rpc.github.io/en/doc/0.17.99/rpc/blockchain/getblock
-
moneromooo
blob is the raw binary data for the block. It has transaction hashes.
-
hcb_
It seems too small to hold actual transactions.
-
hcb_
Is it small because there are only coinbase transactions?
-
moneromooo
It it small because it has the coinbase tx and transaction hashes. A transaction hash is a 32 byte value that identifies the tx, not the actual tx (which as I said you need to request separately).
-
moneromooo
(should you need them)
-
hcb_
So if I understand correctly, the coinbase tx is the only one included by default?
-
hcb_
I'm trying to put together a full block that a receiver can receive, verify, and add to its blockchain.
-
moneromooo
Correct.
-
moneromooo
Then you need to request the txes from the tx hashes included in the block.
-
moneromooo
You don't have to parse the blob btw, they're also included in the json IIRC.
-
hcb_
There's a method called get_transactions that I can use.
-
hcb_
When I have all the transactions from a block in hex format, how do I know how to arrange them in the right order so they hash to the right block hash?
-
hcb_
Sorry if that's a very basic question.
-
moneromooo
You want to have a blockchain built up from RPC, rather than P2P messages ?
-
hcb_
Yes
-
moneromooo
The tx hashes you get will be in the right order.
-
moneromooo
(from get_block)
-
hcb_
Thank you, that makes sense. I guess I would assemble a block with a header after that and it would be the same as the one in the data file.
-
moneromooo
Depending on what you call header. If you have the blob from get_block and all the tx blobs the block references, you have all you need.
-
hcb_
That sounds easy.
-
hcb_
Thank you for explaining it.
-
Steven_M
Hi all, what's the difference between the --p2p-bind-port switch and the --p2p-external-port switch for monerod?
-
selsta
-
Steven_M
selsta: ahh, I see :-)
-
» Steven_M will BRB
-
Steven_M
The percentages in this message seem contradictory: "(99%, 186 left, 64% of total synced..."
-
selsta
Steven_M: It means 64% of when you started syncing.
-
Steven_M
selsta: ahh, thank you. :-)
-
azy
it would be easier for home computers to run a public _tor_ node, right? no requirements to open ports, which is more of an effort typically?
-
azy
"The daemon allows to make a node public by simply adding the flag --public-node. Doing so, it will be advertised on the P2P network and people will be able to connect to it" @
web.getmonero.org/resources/moneropedia/remote-node.html - advertised how? above this is 'aggregators' which are manually and central, there's no 'p2p list' of public nodes is there? we have to use the likes of moneroworld.com/#nodes ?
-
asymptotically
azy: moneroworld.com uses a script to find all of the nodes that have port 18089 open and working. --public-node does what it says it does, you don't need to ask moneroworld, just other nodes on the network
-
moneromooo
Advertised by setting the relevant flag in the peers list that nodes share.
-
Mochi101
#NoFlagIsIrrelevant
-
Mochi101
oh man... wrong channel
-
Mochi101
:)
-
azy
asymptotically, im not seeing such a list, i just see a couple manually entered nodes with no up(time) checking
-
asymptotically
where are you looking? i think that there's a command to print them all in the daemon cli
-
azy
if i were looking for a public node to connect to i'd go to
moneroworld.com/#nodes
-
azy
"TOR Remote Nodes Note - I don't check these, at all. No idea if they work..."
-
azy
i wanted to automate this
-
azy
for regular nodes too, but i dont know if thats necessary
-
Mochi101
-
Mochi101
azy, ^^^
-
azy
neat
-
Mochi101
There will be so much bash it won't be funny.
-
xmrpow
Can I somehow limit the ram usage of monerod. I know that lmdb should free up space when other processes need it, but I m having a weird bug on my pool where im getting errors after few days of running it...
-
moneromooo
Try looking into cgroups.
-
asymptotically
xmrpow: how do you start monerod? systemd service?
-
xmrpow
asymptotically: Im just using screen ./monerod and few other arguements
-
asymptotically
-
xmrpow
thanks ill have a look.
-
asymptotically
then it can automatically restart it for you when it crashes and at boot. much nicer than running it in screen :)
-
xmrpow
asymptotically: Is there a way to reattach to monerod in order to use monerod command line?
-
xmrpow
asymptotically: systemd was a great hint!
-
selsta
no way to reattach
-
xmrpow
selsta: But how can I check if everything is running fine?
-
selsta
e.g. ./monerod status
-
selsta
or use tmux or whatever
-
xmrpow
selsta: If I detached monerod i cant use the command line of monerod
-
selsta
Did you try it?
-
xmrpow
ops sorry. Does work.
-
xmrpow
Thank you
-
xmrpow
cd
-
d4ndo[m]
Can't wait for the Monero project to move to radicle.
-
d4ndo[m]
I think maybe Tari and radicle would be compatible.
-
d4ndo[m]
They could do the blockchain stuff on Tari.
-
d4ndo[m]
probably.
-
d4ndo[m]
i dont know