Closed iam-Truong closed 7 months ago
This is a guide for deploying a private chain.
You can also refer to https://github.com/tronprotocol/java-tron/issues/5734
Is there any desire how many SR,Fullnode need to be deployed to run a private net work properly?
As long as there is one SR, blocks can be produced
I run with 1 SR and 1 FullNode, and met this error, is it an ok architecture or i need to start more SR, or maybe more FullNode? thank you in advance
or maybe more FullNode? thank you in advance
No, 1 SR and 1 FullNode is OK
fullnode.txt sr.txt This is my conf. i run with the same machine, have adjusted the port, but still have the same error
witnesses = [
{
address: TTJ9F3Uhq95AdzPZS4Ed4neSW2wujzuVbL,
url = "http://tronstudio.com",
voteCount = "10000"
}
]
It looks like your localwitness
private key does not match the SR address.
I have adjust the right address which is TXbw7vxj21NFL2kLvXXCsfe6dh258hiuwF, but still got the exact error
here is my run command sr : java -jar ../FullNode.jar --witness -c sr.conf fullnode: java -jar ../FullNode.jar -c fullnode.conf
but still got the exact error
What about clearing the database and restart?
What about clearing the database and restart?
I have done that many times. Delete folder logs and output-directory restart
Please upload the entire log file of the SR and fullnode.
It is also recommended to refer to this guide in detail to compare the differences.
i have adjust the run command, copy the exact file private_config from refer, adjust the port and its works perfectly. Thank you very much. Another question is if i want to scale it up, let say 3 SR, and that 3 SR still require 3 FullNode or more or less ? Do you have the correct architecture?
And What should i do with the Solidity Node ? Now i want to test deploy, call smartcontract, do i need the solidity node the call or deploy the samrt contract ?
3 SR still require 3 FullNode or more or less
Looking at a chain from a theoretical perspective, as long as one node can produce blocks, it means that the chain has been started.
Therefore, only one SR is needed to start a chain. The number of SRs has nothing to do with the number of fullnodes. The role of fullnodes is more for broadcasting transactions and querying data.
do i need the solidity node the call or deploy the samrt contract ?
Only the fullnode node is enough. It provides interfaces in multiple dimensions, such as latest/solidity/pbft
, you can refer to: https://developers.tron.network/reference/background
Thank you very much @tomatoishealthy. You ve just saved my day!! Take care sir
As they say in the classics, 'Not all heroes wear armor.'
The road is arduous and long, I wish you all the best, my friend
10:23:08.664 INFO [connPool] net Connect to peer /127.0.0.1:16677 10:23:08.666 INFO [peerClient-2] net Send message to channel /127.0.0.1:16677, [HelloMessage: from { address: "**" port: 16666 nodeId: "7\360\\020\230\360\261\017\265\307\223}[Q\207\325\322\270\315\f\275\276\307l\352ZA\025\310\253\205K\210\223G\031\344\'\264\350,\232\304\017\017{G\234\341u\f\331\000\231\353\t\227\036\016\212\211\200\364\005" } network_id: 3001 timestamp: 1712571788665 version: 1
10:23:08.669 INFO [peerClient-2] net Add peer /127.0.0.1:16677, total channels: 1 10:23:08.670 INFO [peerClient-2] net Peer stats: channels 1, activePeers 1, active 1, passive 0 10:23:08.670 INFO [peerClient-2] net Send peer /127.0.0.1:16677 message type: P2P_HELLO from: /**:16666 timestamp: 1712571788665 headBlockId: Num:0,ID:0000000000000000d848a2a642800a989d3d8f18600cdac9fb9c9eb6bb156e63 nodeType: 0 lowestBlockNum: 0 codeVersion:4.7.4
10:23:08.671 WARN [peerClient-2] net Message from /127.0.0.1:16677 process failed, null type: (1, no such message), detail: type=84, len=71 10:23:08.671 INFO [peerClient-2] net Send peer /127.0.0.1:16677 message type: P2P_DISCONNECT reason: NO_SUCH_MESSAGE 10:23:08.671 INFO [peerClient-2] net Close channel:/127.0.0.1:16677 10:23:08.671 INFO [peerClient-2] net Peer stats: channels 0, activePeers 0, active 0, passive 0 10:23:08.671 WARN [peerClient-2] net Receive msg from unknown peer /127.0.0.1:16677 10:23:09.000 INFO [DPosMiner] consensus Produce block failed: NOT_MY_TURN 10:23:10.582 INFO [peerWorker-2] net Receive message from channel: /127.0.0.1:50352, [HelloMessage: from { address: "**" port: 16677 nodeId: "\003\264|\036\303\001c\020\2515\346\202\377\303\216\350IbR\217leR\006\037\223\036w\036\021\022X\207\211\177\3159#\323\033S>\354\276\244Qdp~\261\222$}#\t\306k\333\311\252\375\222t\374" } network_id: 3001 timestamp: 1712571790578 version: 1
10:23:10.582 INFO [peerWorker-2] net Peer /127.0.0.1:50352 | 03b47c1ec3016310a935e682ffc38ee84962528f6c6552061f931e771e11125887897fcd3923d31b533eecbea45164707eb192247d2309c66bdbc9aafd9274fc recently disconnected 10:23:10.582 INFO [peerWorker-2] net Send message to channel /127.0.0.1:50352, [HelloMessage: from { address: "**" port: 16666 nodeId: "7\360\\020\230\360\261\017\265\307\223}[Q\207\325\322\270\315\f\275\276\307l\352ZA\025\310\253\205K\210\223G\031\344\'\264\350,\232\304\017\017{G\234\341u\f\331\000\231\353\t\227\036\016\212\211\200\364\005" } network_id: 3001 code: 3 timestamp: 1712571790578 version: 1
10:23:10.583 INFO [peerWorker-2] net Try to close channel: /127.0.0.1:50352, reason: RECENT_DISCONNECT 10:23:10.583 INFO [peerWorker-2] net Close channel:/127.0.0.1:50352 10:23:10.583 INFO [peerWorker-2] net Peer stats: channels 0, activePeers 0, active 0, passive 0 10:23:12.000 INFO [DPosMiner] consensus Produce block failed: NOT_MY_TURN 10:23:12.853 INFO [peer-manager] net
============ Peer stats: all 0, active 0, passive 0
10:23:15.001 INFO [DPosMiner] consensus Produce block failed: NOT_MY_TURN 10:23:18.000 INFO [DPosMiner] consensus Produce block failed: NOT_MY_TURN 10:23:21.000 INFO [DPosMiner] consensus Produce block failed: NOT_MY_TURN 10:23:22.853 INFO [peer-manager] net
============ Peer stats: all 0, active 0, passive 0
I dont know the error not my turn really means and how to fix it? Another question: Is there any desire how many SR,Fullnode need to be deployed to run a private net work properly?