Search content
Sort by

Showing 3 of 3 results by ywnasdzkd
Post
Topic
Board Development & Technical Discussion
Merits 3 from 2 users
Topic OP
Cannot obtain a lock on data directory /home/ywn/btc_data.
by
ywnasdzkd
on 09/10/2022, 04:01:05 UTC
⭐ Merited by NotATether (2) ,ETFbitcoin (1)
-------------------------------------------------------------------------------------------------------------------------------
ywn@ywn-virtual-machine:~/bitcoin/bin$ bitcoind -connect="18.214.92.184"
Error: Cannot obtain a lock on data directory /home/ywn/btc_data. Bitcoin Core is probably already running.
ywn@ywn-virtual-machine:~/bitcoin/bin$
------------------------------------------------------------------------------------------------------------------------------

The bitcoin node I deployed is running, and I use “ bitcoind -connect="18.214.92.184" ” command to connect to the new node,
 but the above error occurs. what do I do?
I know that connect can be set via config file bitcoin.conf, but I want to set connect dynamically with command.




Ubuntu18
Bitcoin Core version v0.20.1
Post
Topic
Board Development & Technical Discussion
Merits 1 from 1 user
Topic OP
Questions about Bitcoin node's connection
by
ywnasdzkd
on 06/10/2022, 11:50:24 UTC
⭐ Merited by vapourminer (1)
The default number of connections (nodes) Bitcoin Core works with is 125: 10 outbound and 115 inbound.

I use the command "bitcoin - maxconnections=300", and then I use the command "bitcoin cli getconnectioncount".
The output connectioncount is still 10. What should I do to achieve 15 outbound and 200 inbound connections?
Post
Topic
Board Development & Technical Discussion
Topic OP
Questions about Bitcoin development technology
by
ywnasdzkd
on 06/10/2022, 09:42:02 UTC
Here are some questions about the node deployment of Bitcoin. I hope you can help me. Thanks.

Question 1
-connect=<ip>
       Connect only to the specified node; -noconnect disables automatic connections (the rules for this peer are the same as for -addnode). This option can be specified multiple times to connect to multiple nodes.

The above is a description of Bitcoin connection options. What is the maximum number of times the connection is used?in other words,How many nodes can a node connect at the same time?

Question 2
If I have an IP address of a node, can I obtain the IP addresses of all nodes connected to this node?