GithubHelp home page GithubHelp logo

tron-deployment's Introduction

Scope of use

This script could be used on Linux/MacOS, but not on Windows. Just Support FullNode and SolidityNode.

Download and run script

wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh

Parameter Illustration

bash deploy_tron.sh --app [FullNode|SolidityNode] --net [mainnet|testnet|privatenet] --db [keep|remove|backup] --heap-size <heapsize>

--app	Optional, Running application. The default node is Fullnode and it could be FullNode or SolidityNode.
--net	Optional, Connecting network. The default network is mainnet and it could be mainnet, testnet.
--db	Optional, The way of data processing could be keep, remove and backup. Default is keep. If you launch two different networks, like from mainnet to testnet or from testnet to mainnet, you need to delete database.
--trust-node	Optional, It only works when deploying SolidityNode. Default is 127.0.0.1:50051. The specified gRPC service of Fullnode, like 127.0.0.1:50051 or 13.125.249.129:50051.
--rpc-port	Optional, Port of grpc. Default is 50051. If you deploy SolidityNode and FullNode on the same host,you need to configure different ports.
--commit	Optional, commitid of project.
--branch	Optional, branch of project.  Mainnet default is latest release and Testnet default is master.
--heap-size  Optional, jvm option: Xmx. The default heap-size is 0.8 * memory size.
--work_space  Optional, default is current directory.

Examples

Deployment of FullNode on the one host.

wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh
bash deploy_tron.sh

Deployment of SolidityNode on the one host.

wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh
# User can self-configure the IP and Port of GRPC service in the turst-node field of SolidityNode. trust-node is the fullnode you just deploy.
bash deploy_tron.sh --app SolidityNode --trust-node <grpc-ip:grpc-port>

Deployment of FullNode and SolidityNode on the same host.

# You need to configure different gRPC ports on the same host because gRPC port is available on SolidityNode and FullNodeConfigure and it cannot be set as default value 50051. In this case the default value of rpc port is set as 50041.
wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh
bash deploy_tron.sh --app FullNode
bash deploy_tron.sh --app SolidityNode --rpc-port 50041

Deployment of grpc gateway

Summary

This script helps you download the code from https://github.com/tronprotocol/grpc-gateway and deploy the code on your environment.

Pre-requests

Please follow the guide on https://github.com/tronprotocol/grpc-gateway Install Golang, Protoc, and set $GOPATH environment variable according to your requirement.

Download and run script

wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_grpc_gateway.sh -O deploy_grpc_gateway.sh

Parameter Illustration

bash deploy_grpc_gateway.sh --rpchost [rpc host ip] --rpcport [rpc port number] --httpport [http port number] 

--rpchost The fullnode or soliditynode IP where the grpc service is provided. Default value is "localhost".
--rpcport The fullnode or soliditynode port number grpc service is consuming. Default value is 50051.
--httpport The port intends to provide http service provided by grpc gateway. Default value is 18890.

Example

Use default configuration:

bash deploy_grpc_gateway.sh

Use customized configuration:

bash deploy_grpc_gateway.sh --rpchost 127.0.0.1 --rpcport 50052 --httpport 18891

tron-deployment's People

Contributors

317787106 avatar ahonnecke avatar dorianrust avatar forfreeday avatar gologo13 avatar halibobo1205 avatar huzhenyuan avatar hyxc avatar ithinker1991 avatar jiangyy0824 avatar jwrct avatar kookiekrak avatar lcgogo avatar lvs007 avatar m1s5 avatar olenheim avatar rlaace423 avatar shenyongri110 avatar shiruitao avatar shydesky avatar ss334452 avatar taihaofu avatar tjchern avatar tomatoishealthy avatar unforgivenzzz avatar wubin12 avatar xiechang33 avatar ybhgenius avatar yrp avatar zhaohong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tron-deployment's Issues

Can not sync latest block on testnet

Start command:
sudo bash deploy_tron.sh --app FullNode --net testnet --heap-size 13108m

I found errors in tron.log:
17:30:46.768 INFO [pool-6-thread-1] o.t.c.d.Manager PreValidate Transaction Sign, size:1,block num:302
17:30:46.776 INFO [pool-6-thread-1] o.t.c.w.WitnessController scheduledWitness:41c0e86ce4f5c476301af6b2aeed049e918e6ad4c7, currentSlot:515677898
17:30:46.792 ERROR [pool-6-thread-1] o.t.c.d.Manager Bad chain parameter id
org.tron.core.exception.ContractValidateException: Bad chain parameter id
at org.tron.core.actuator.ProposalCreateActuator.validateValue(ProposalCreateActuator.java:211)
at org.tron.core.actuator.ProposalCreateActuator.validate(ProposalCreateActuator.java:136)
at org.tron.common.runtime.RuntimeImpl.precompiled(RuntimeImpl.java:162)
at org.tron.common.runtime.RuntimeImpl.execute(RuntimeImpl.java:171)
at org.tron.core.db.TransactionTrace.exec(TransactionTrace.java:131)
at org.tron.core.db.Manager.processTransaction(Manager.java:1037)
at org.tron.core.db.Manager.processBlock(Manager.java:1271)
at org.tron.core.db.Manager.applyBlock(Manager.java:678)
at org.tron.core.db.Manager.pushBlock(Manager.java:874)
at org.tron.core.net.node.NodeDelegateImpl.handleBlock(NodeDelegateImpl.java:71)
at org.tron.core.net.node.NodeImpl.processSyncBlock(NodeImpl.java:792)
at org.tron.core.net.node.NodeImpl.lambda$handleSyncBlock$27(NodeImpl.java:575)
at java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1597)
at org.tron.core.net.node.NodeImpl.handleSyncBlock(NodeImpl.java:550)
at org.tron.core.net.node.NodeImpl.lambda$activeTronPump$9(NodeImpl.java:407)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
17:30:46.794 ERROR [pool-6-thread-1] o.t.c.n.n.NodeImpl We get a bad block Num:302,ID:000000000000012eeb10598e36dd35066040e3881af6481e372755f597cbaa02, reason is ContractValidate exception,Bad chain parameter id

can anyone check the problem? Need update p2p version?

can't run FullNode.jar - org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockMsgHandler': Injection of autowired dependencies failed;

I've downloaded the .jar from https://github.com/tronprotocol/java-tron/releases/download/Odyssey-v3.6.2/FullNode.jar and the config from https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/main_net_config.conf

I'm trying to run it as java -jar FullNode.jar -c main_net_config.conf but it fails.

I've seen some issues with a similar exception but they didn't have any solutions, except one guy saying it started working on Oracle's Java, which sadly is not an option for me. What am I doing incorrectly? :)

❯ java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b05)
OpenJDK 64-Bit Server VM (build 25.222-b05, mixed mode)

tron.log

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockMsgHandler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.net.TronNetDelegate org.tron.core.net.messagehandler.BlockMsgHandler.tronNetDelegate; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tronNetDelegate': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.common.overlay.server.SyncPool org.tron.core.net.TronNetDelegate.syncPool; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'syncPool': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.common.overlay.discover.node.NodeManager org.tron.common.overlay.server.SyncPool.nodeManager; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nodeManager' defined in URL [jar:file:/home/me/code/tron/FullNode.jar!/org/tron/common/overlay/discover/node/NodeManager.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.tron.core.db.Manager]: : Error creating bean with name 'manager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.db.TransactionStore org.tron.core.db.Manager.transactionStore; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.db.KhaosDatabase org.tron.core.db.TransactionStore.khaosDatabase; nested exception is java.lang.NoClassDefFoundError: javafx/util/Pair; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'manager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.db.TransactionStore org.tron.core.db.Manager.transactionStore; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.db.KhaosDatabase org.tron.core.db.TransactionStore.khaosDatabase; nested exception is java.lang.NoClassDefFoundError: javafx/util/Pair

Testnet is not alive

I checked all hosts from config and found that they are not responding on port 18888

The node also does not sync with this config.

08:30:43.101 INFO  [pool-35-thread-1] [net](PeerClient.java:70) connect peer 47.252.80.45 18888 73d94819efe8f7a9060f03cbf7e51868e768ffaa3dd1343dc14ec5a59a18bb0614231faa0     ecd02b87c0d30b933c311559f7a36fcceaf09fc66351e555051e2e6
08:30:43.101 INFO  [pool-35-thread-1] [net](PeerClient.java:70) connect peer 47.252.81.126 18888 df1f6eed2fcae45443ee873e01f60487215f632e372f97c32ddbc214dd100187fa7b7ed2     4024e6552243d096c39c6c641902aabcd1ee400b3dcecb6cbceacf2e
08:30:43.101 INFO  [pool-35-thread-1] [net](PeerClient.java:70) connect peer 47.252.84.148 18888 6516a865c9a56a3778ce5e3867c6d90da3fc5db3504e134acfd6db5b985e049b8b4b0399     f93c7c0e4af574b10836a398194c77b49e686f68a85a5839aa73bac4
08:30:43.102 INFO  [pool-35-thread-1] [net](PeerClient.java:70) connect peer 47.252.80.163 18888 ca7787e6acac16619d3acce0cad1b041d621c29e36c49cda8cbfa99c60b59f9c7491db1a     3c328fe91c78b3f31006532c58b9984e353463fdc1800b3c031871f0
08:30:45.104 WARN  [TronJClientWorker-24] [net](PeerClient.java:58) connect to 47.252.80.45:18888 fail,cause:connection timed out: /47.252.80.45:18888
08:30:45.104 WARN  [TronJClientWorker-25] [net](PeerClient.java:58) connect to 47.252.81.126:18888 fail,cause:connection timed out: /47.252.81.126:18888
08:30:45.104 INFO  [TronJClientWorker-24] [net](TronChannelInitializer.java:48) Close channel:null | <null>
08:30:45.104 WARN  [TronJClientWorker-26] [net](PeerClient.java:58) connect to 47.252.84.148:18888 fail,cause:connection timed out: /47.252.84.148:18888
08:30:45.104 INFO  [TronJClientWorker-25] [net](TronChannelInitializer.java:48) Close channel:null | <null>
08:30:45.104 INFO  [TronJClientWorker-26] [net](TronChannelInitializer.java:48) Close channel:null | <null>
08:30:45.104 WARN  [TronJClientWorker-27] [net](PeerClient.java:58) connect to 47.252.80.163:18888 fail,cause:connection timed out: /47.252.80.163:18888
08:30:45.104 INFO  [TronJClientWorker-27] [net](TronChannelInitializer.java:48) Close channel:null | <null>

Unable to Add new SR in tron private chain when its in running state

I am developing tron private chain where I want to add new SR while my Full node is in current state and producing block.
Steps I have done:

  1. used fresh address and staked 9999trx
  2. signed transaction of Add Witness : {FullnodeURL}/wallet/createwitness
  3. setup Sr node on different server
    and added the SR server Ip in seed.node = {
    ip.list = [ "3.109.94.186:16666"
    ,"54.242.57.146:16666" ]
    } and restart the fullnode

also here is my supernode.conf that I have created on different server which have public IP 54.242.57.146:

   type = mainnet
  # type = testnet
}

storage {
  # Directory for storing persistent data

  db.version = 2,
  db.engine = "LEVELDB",
  db.directory = "database",
  index.directory = "index",

  # You can custom these 14 databases' configs:

  # account, account-index, asset-issue, block, block-index,
  # block_KDB, peers, properties, recent-block, trans,
  # utxo, votes, witness, witness_schedule.

  # Otherwise, db configs will remain defualt and data will be stored in
  # the path of "output-directory" or which is set by "-d" ("--output-directory").

  # Attention: name is a required field that must be set !!!
  properties = [
    //    {
    //      name = "account",
    //      path = "storage_directory_test",
    //      createIfMissing = true,
    //      paranoidChecks = true,
    //      verifyChecksums = true,
    //      compressionType = 1,        // compressed with snappy
    //      blockSize = 4096,           // 4  KB =         4 * 1024 B
    //      writeBufferSize = 10485760, // 10 MB = 10 * 1024 * 1024 B
    //      cacheSize = 10485760,       // 10 MB = 10 * 1024 * 1024 B
    //      maxOpenFiles = 100
    //    },
    //    {
    //      name = "account-index",
    //      path = "storage_directory_test",
    //      createIfMissing = true,
    //      paranoidChecks = true,
    //      verifyChecksums = true,
    //      compressionType = 1,        // compressed with snappy
    //      blockSize = 4096,           // 4  KB =         4 * 1024 B
    //      writeBufferSize = 10485760, // 10 MB = 10 * 1024 * 1024 B
    //      cacheSize = 10485760,       // 10 MB = 10 * 1024 * 1024 B
    //      maxOpenFiles = 100
    //    },
  ]

}

# this part of config is used to node discovery.
node.discovery = {
  enable = true  # you should set this entry value with true if you want your node can be discovered by other node.
  persist = true  # this entry is used to determined to whether storing the peers in the database or not.
  bind.ip = "0.0.0.0"
  external.ip = 54.242.57.146
}

# this part of config is used to set backup node for witness service.
node.backup {
  port = 10001
  priority = 8
  members = [
  ]
}
#Enabling JSON-RPC service of a node
node.jsonrpc {
httpFullNodeEnable = true
httpFullNodePort = 50545
httpSolidityEnable = true
httpSolidityPort = 50555
}

node {
  # trust node for solidity node
  # trustNode = "ip:port"
  trustNode = "127.0.0.1:50051"

  # expose extension api to public or not
  walletExtensionApi = true

  listen.port = 16666

  connection.timeout = 2

  tcpNettyWorkThreadNum = 0

  udpNettyWorkThreadNum = 1

  # Number of validate sign thread, default availableProcessors / 2
  # validateSignThreadNum = 16

  maxActiveNodes = 30

  maxActiveNodesWithSameIp = 2

  minParticipationRate = 0

  # check the peer data transfer ,disconnect factor
  disconnectNumberFactor = 0.4
  maxConnectNumberFactor = 0.8
  receiveTcpMinDataLength = 2048
  isOpenFullTcpDisconnect = true

  p2p {
    version = 1 # 11111: mainnet; 20180622: testnet; you can set other number when you deploy one private net, but the node must have the same number in some private net. 
  }

  active = [
    # Active establish connection in any case
    # Sample entries:
    # "ip:port",
    # "ip:port"
  ]

  passive = [
    # Passive accept connection in any case
    # Sample entries:
    # "ip:port",
    # "ip:port"
  ]

  http {
    fullNodePort = 16667
    solidityPort = 16668
  }

  rpc {
    port = 16669

    # Number of gRPC thread, default availableProcessors / 2
    # thread = 16

    # The maximum number of concurrent calls permitted for each incoming connection
    # maxConcurrentCallsPerConnection =

    # The HTTP/2 flow control window, default 1MB
    # flowControlWindow =

    # Connection being idle for longer than which will be gracefully terminated
    maxConnectionIdleInMillis = 60000

    # Connection lasting longer than which will be gracefully terminated
    # maxConnectionAgeInMillis =

    # The maximum message size allowed to be received on the server, default 4MB
    # maxMessageSize =

    # The maximum size of header list allowed to be received, default 8192
    # maxHeaderListSize =

    # Transactions can only be broadcast if the number of effective connections is reached.
    minEffectiveConnection = 0
  }

  # Whether to enable the node detection function, default false
  # nodeDetectEnable = false

  # use your ipv6 address for node discovery and tcp connection, default false
  # enableIpv6 = false

  # if your node's highest block num is below than all your pees', try to acquire new connection. default false
  # effectiveCheckEnable = false

  # Dynamic loading configuration function, disabled by default
  # dynamicConfig = {
    # enable = false
    # Configuration file change check interval, default is 600 seconds
    # checkInterval = 600
  # }

  dns {
    # dns urls to get nodes, url format tree://{pubkey}@{domain}, default empty
    treeUrls = [
      #"tree://APFGGTFOBVE2ZNAB3CSMNNX6RRK3ODIRLP2AA5U4YFAA6MSYZUYTQ@nodes1.example.org",
    ]
  }
}



seed.node = {
  # List of the seed nodes. This is used to enable the node can connect when join one net at first.
  # If you deploy one private net, you must add some "ip:port" here for other node connecting.
  # Seed nodes are stable full nodes, and the first SuperNode must be inclued in.
  # example:
  # ip.list = [
  #   "ip:port",
  #   "ip:port"
  # ]
  ip.list = [
  ]
}

genesis.block = {
  # Reserve balance
  assets = [
    {
      accountName = "LBM"
      accountType = "AssetIssue"
      address = "TR4Bqq9zhBQvi8bKFfD9S2oePptvTxZsM5"
      balance = "95000000000000000"
    },
    {
      accountName = "POX"
      accountType = "AssetIssue"
      address = "TR4Bqq9zhBQvi8bKFfD9S2oePptvTxZsM5"
      balance = "5000000000000000"
    },
    {
      accountName = "Blackhole"
      accountType = "AssetIssue"
      address = "TUKZpDNnzAufcJQjmq9Eo2gQs8wTSKDfQY"
      balance = "-9223372036854775808"
    },
    {
      accountName = "TestA"
      accountType = "AssetIssue"
      address = "TKDiGS7ZpAj92UcYQCbASjTBYzCYK6CQsS"
      balance = "1000000000000000"
    },
    {
      accountName = "TestB"
      accountType = "AssetIssue"
      address = "TJVb3LEZtxaLfZHvdutj8M2zjL8xEgdPGM"
      balance = "1000000000000000"
    },
    {
      accountName = "TestC"
      accountType = "AssetIssue"
      address = "TUPxRRwjzPtLpbHYY21CLCCoPZ4eaynKm5"
      balance = "1000000000000000"
    },
    {
      accountName = "TestD"
      accountType = "AssetIssue"
      address = "TBcBVYnotCt6CtRyBiwnaALjMyoypXH8Wj"
      balance = "1000000000000000"
    },
    {
      accountName = "TestE"
      accountType = "AssetIssue"
      address = "TE9gsbPsVSzbHhQP3DF3wa1n3ANq1SgiSC"
      balance = "1000000000000000"
    }
  ]

  witnesses = [
    {
      address: TKYpb1JwBuyecNR2bxYhW96Sg3kATh3DCr,
      url = "http://polluxstudio.com",
      voteCount = 10000
    }
  ]

  timestamp = "0" #2017-8-26 12:00:00

  parentHash = "957dc2d350daecc7bb6a38f3938ebde0a0c1cedafe15f0edae4256a2907449f6"
}

localwitness = [
b358d0c1f8927d32ca4870bdc96e785f3a9dc2e69245b8999e97d0bfed32dbd7
]

#localwitnesskeystore = [
#  "src/main/resources/localwitnesskeystore.json"  # if you do not set the localwitness above, you must set this value.Otherwise,your SuperNode can not produce the block. 
#]

block = {
  needSyncCheck = false # first node : false, other : true
  maintenanceTimeInterval = 900000 // 1 day: 86400000(ms), 6 hours: 21600000(ms),15 mins: 900000
  proposalExpireTime = 900000 // 15 mins: 900000
}


vm = {
  supportConstant = true
  minTimeRatio = 0.0
  maxTimeRatio = 5.0
}

committee = {
  allowCreationOfContracts = 1  //mainnet:0 (reset by committee),test:1
}

event.subscribe = {
  native = {
    useNativeQueue = true // if true, use native message queue, else use event plugin.
    bindport = 5555 // bind port
    sendqueuelength = 1000 //max length of send queue
  }

  path = "" // absolute path of plugin
  server = "" // target server address to receive event triggers
  dbconfig = "" // dbname|username|password
  contractParse = true,
  topics = [
    {
      triggerName = "block" // block trigger, the value can't be modified
      enable = true
      topic = "block" // plugin topic, the value could be modified
    },
    {
      triggerName = "transaction"
      enable = true
      topic = "transaction"
    },
    {
      triggerName = "contractevent"
      enable = true
      topic = "contractevent"
    },
    {
      triggerName = "contractlog"
      enable = true
      topic = "contractlog"
    },
    {
      triggerName = "solidity" // solidity block event trigger, the value can't be modified
      enable = true            // the default value is true
      topic = "solidity"
    }
  ]

  filter = {
    fromblock = "0" // the value could be "", "earliest" or a specified block number as the beginning of the queried range
    toblock = "latest" // the value could be "", "latest" or a specified block number as end of the queried range
    contractAddress = []

    contractTopic = []
  }
}

this is my config file of supernode.conf and started the SR node by:
java -Xmx6g -XX:+HeapDumpOnOutOfMemoryError -jar FullNode.jar --witness -c supernode.conf

when I checked tron.log

its only returning me this in log



12:10:03.000 INFO  [DPosMiner] [consensus](DposTask.java:59) Produce block failed: NOT_MY_TURN
12:10:06.000 INFO  [DPosMiner] [consensus](DposTask.java:59) Produce block failed: NOT_MY_TURN
12:10:09.000 INFO  [DPosMiner] [consensus](DposTask.java:59) Produce block failed: NOT_MY_TURN
12:10:12.000 INFO  [DPosMiner] [consensus](DposTask.java:59) Produce block failed: NOT_MY_TURN
12:10:12.976 INFO  [pool-39-thread-1] [net](SyncPool.java:137) 

============ Peer stats: all 0, active 0, passive 0


12:10:15.000 INFO  [DPosMiner] [consensus](DposTask.java:59) Produce block failed: NOT_MY_TURN
12:10:18.000 INFO  [DPosMiner] [consensus](DposTask.java:59) Produce block failed: NOT_MY_TURN
12:10:21.000 INFO  [DPosMiner] [consensus](DposTask.java:59) Produce block failed: NOT_MY_TURN
12:10:21.915 INFO  [NodeManagerTasks] [discover](NodeManager.java:153) Write node statistics to store: m:0/t:0/0/0 nodes.
12:10:22.976 INFO  [pool-39-thread-1] [net](SyncPool.java:137) 

============ Peer stats: all 0, active 0, passive 0


12:10:24.000 INFO  [DPosMiner] [consensus](DposTask.java:59) Produce block failed: NOT_MY_TURN
12:10:27.001 INFO  [DPosMiner] [consensus](DposTask.java:59) Produce block failed: NOT_MY_TURN
12:10:30.000 INFO  [DPosMiner] [consensus](DposTask.java:59) Produce block failed: NOT_MY_TURN
12:10:32.976 INFO  [pool-39-thread-1] [net](SyncPool.java:137) 

============ Peer stats: all 0, active 0, passive 0


12:10:33.000 INFO  [DPosMiner] [consensus](DposTask.java:59) Produce block failed: NOT_MY_TURN
12:10:36.000 INFO  [DPosMiner] [consensus](DposTask.java:59) Produce block failed: NOT_MY_TURN

AND WHEN I CHECKED ON ADDRESS ITS MISSING BLOCKS BUT MY NODES IS RUNNING. I have voted this address as well so it comes in top 27.
help me to solve this, where am i doing wrong so they are not connecting and producing the block.

this is my log of Fullnode


Peer /3.109.94.186:16666
connect time: 6203s [18ms]
last know block num: 149880
needSyncFromPeer:false
needSyncFromUs:false
syncToFetchSize:0
syncToFetchSizePeekNum:-1
syncBlockRequestedSize:0
remainNum:0
syncChainRequested:0
blockInProcess:0


12:12:30.006 INFO  [peerClient-14] [net](P2pEventHandlerImpl.java:168) Receive message from  peer: /3.109.94.186:16666, type: INVENTORY
invType: BLOCK, size: 1, First hash: 0000000000024fd1f76aa2809ec6dd685abf8e4a90b5e3e8aaa071df61f90212
12:12:30.007 INFO  [peerClient-14] [net](PeerConnection.java:175) Send peer /3.109.94.186:16666 message type: FETCH_INV_DATA
invType: BLOCK, size: 1, First hash: 0000000000024fd1f76aa2809ec6dd685abf8e4a90b5e3e8aaa071df61f90212
12:12:30.007 INFO  [peerClient-14] [net](FetchBlockService.java:64) Begin fetch block Num:151505,ID:0000000000024fd1f76aa2809ec6dd685abf8e4a90b5e3e8aaa071df61f90212 from /3.109.94.186
12:12:30.007 INFO  [peerClient-14] [net](FetchBlockService.java:75) Set fetchBlockInfo, block: 0000000000024fd1f76aa2809ec6dd685abf8e4a90b5e3e8aaa071df61f90212, peer: /3.109.94.186, time: 1705320750007
12:12:30.007 INFO  [peerClient-14] [net](P2pEventHandlerImpl.java:168) Receive message from  peer: /3.109.94.186:16666, type: BLOCK
Num:151505,ID:0000000000024fd1f76aa2809ec6dd685abf8e4a90b5e3e8aaa071df61f90212, trx size: 1

12:12:30.007 INFO  [peerClient-14] [net](FetchBlockService.java:82) Fetch block success, Num:151505,ID:0000000000024fd1f76aa2809ec6dd685abf8e4a90b5e3e8aaa071df61f90212
12:12:30.009 INFO  [peerClient-14] [net](AdvService.java:200) Ready to broadcast block Num:151505,ID:0000000000024fd1f76aa2809ec6dd685abf8e4a90b5e3e8aaa071df61f90212
12:12:30.009 INFO  [peerClient-14] [DB](Manager.java:1214) Block num: 151505, re-push-size: 0, pending-size: 1, block-tx-size: 1, verify-tx-size: 0
12:12:30.014 INFO  [peerClient-14] [consensus](StatisticManager.java:49) Current block: 151505, witness: TLQTtE4gArhpvQ3C3byGJWyf3sC4KxLLzU, totalMissed: 420
12:12:30.014 INFO  [peerClient-14] [DB](DynamicPropertiesStore.java:2191) Update state flag = 0.
12:12:30.014 WARN  [peerClient-14] [consensus](DposService.java:156) Update solid block number failed, new: 0 < old: 151084
12:12:30.014 INFO  [peerClient-14] [DB](DynamicPropertiesStore.java:2186) Update latest block header id = 0000000000024fd1f76aa2809ec6dd685abf8e4a90b5e3e8aaa071df61f90212.
12:12:30.014 INFO  [peerClient-14] [DB](DynamicPropertiesStore.java:2178) Update latest block header number = 151505.
12:12:30.014 INFO  [peerClient-14] [DB](DynamicPropertiesStore.java:2170) Update latest block header timestamp = 1705320750000.
12:12:30.014 WARN  [peerClient-14] [DB](Manager.java:2033) Post solidity filter failed, oldSolidity: 151084 >= latestSolidity: 151084.
12:12:30.014 INFO  [peerClient-14] [DB](Manager.java:1323) Save block: BlockCapsule 
[ hash=0000000000024fd1f76aa2809ec6dd685abf8e4a90b5e3e8aaa071df61f90212
number=151505
parentId=0000000000024fd081e5fb8314e913828756f2dc71d6b9540f0be244fbc95d22
witness address=416914905be069575814c2f7a5107c17f118455840
generated by myself=false
generate time=2024-01-15 12:12:30.0
account root=0000000000000000000000000000000000000000000000000000000000000000
merkle root=8fa33bb0226919c49c09b77d9b5b3d0fe1f7ffde7d3dcdca4fb9186a4f3a5284
txs size=1
]

Quotes in the comment session for private_net or main_net have blocking the block production.(self Mining)

Hello, I able to launch the network private_net and the main_net config file, I see two different outputs from the network launch logs.
Steps to reproduce :
1, Clone the java-tron repo and copy the main_net or private_net config file.
2, Compile the java-tron as per the readme file or https://developers.tron.network/docs/tron-private-chain
3, copy the private_net config file and fullnode.jar under the new folder and Start your SR node with the syntax given from the above link
for ex. java -jar ./fullnode.jar --witness -c ./private_net.conf & tail logs/tron.log

You will not see any block productivity in the logs.

Expected, Blocks to produce...self mining.

For self block producing, repeat the above steps, and before start follow the below steps.

Edit the config file with a favorite editor, remove the single quotes given in the text of commented lines.
for ex. refer pic.
If you are in VSC editor, it shows a difference when you remove the quote. because the single quote takes the rest of the remaining code as strings. So rest of the configurations are ignored.
Uploading image.png…

After this, if you run java -jar ./fullnode.jar --witness -c ./private_net.conf &
you will see the blocks are getting produced from the logs tail logs/tron.log

What I'm expecting is, Update the configuration files by removing the single quote on the text line or put # symbols.
How we can control the self mining in the networks. ? for ex. every 10 mins do self mining or every one hour or we can stop self mining. ..?

Nile testnet sync failed

I'm trying to deploy node
branch: Nile
config: from here - https://nileex.io/join/getJoinPage

In logs I get this error:
ERROR [TronJClientWorker-23] net Peer /157.245.50.216 sync failed, reason: low: 4577 gt highNoFork: 4519

localhost:8090/wallet/getnodeinfo :

{ "activeConnectCount": 8, "beginSyncNum": 5480, "block": "Num:5500,ID:000000000000157cd568dc47f0fc5671af41f1bd8cfe2faa73e57b18f2a1affe", "cheatWitnessInfoMap": {}, "configNodeInfo": { "activeNodeSize": 1, "allowAdaptiveEnergy": 0, "allowCreationOfContracts": 0, "backupListenPort": 10001, "backupMemberSize": 0, "backupPriority": 8, "codeVersion": "4.4.2", "dbVersion": 2, "discoverEnable": true, "listenPort": 18888, "maxConnectCount": 30, "maxTimeRatio": 5.0, "minParticipationRate": 15, "minTimeRatio": 0.0, "p2pVersion": "201910292", "passiveNodeSize": 0, "sameIpMaxConnectCount": 2, "sendNodeSize": 0, "supportConstant": true, "versionNum": "16334" }, "currentConnectCount": 8, "machineInfo": { "cpuCount": 12, "cpuRate": 0.0, "deadLockThreadCount": 0, "deadLockThreadInfoList": [], "freeMemory": 14163013632, "javaVersion": "1.8.0_311", "jvmFreeMemory": 5872730448, "jvmTotalMemory": 7618953216, "memoryDescInfoList": [ { "initSize": 2555904, "maxSize": 251658240, "name": "Code Cache", "useRate": 0.09647572835286458, "useSize": 24278912 }, { "initSize": 0, "maxSize": -1, "name": "Metaspace", "useRate": 0.9702590521714443, "useSize": 50742344 }, { "initSize": 0, "maxSize": 1073741824, "name": "Compressed Class Space", "useRate": 0.005647137761116028, "useSize": 6063568 }, { "initSize": 134742016, "maxSize": 2793406464, "name": "PS Eden Space", "useRate": 0.5962491651197096, "useSize": 1665566272 }, { "initSize": 22020096, "maxSize": 32505856, "name": "PS Survivor Space", "useRate": 0.37054246471774194, "useSize": 12044800 }, { "initSize": 358088704, "maxSize": 5714214912, "name": "PS Old Gen", "useRate": 0.012007195573956039, "useSize": 68611696 } ], "osName": "Linux 4.4.0-19041-Microsoft", "processCpuRate": 0.0, "threadCount": 132, "totalMemory": 34279370752 }, "passiveConnectCount": 0, "peerList": [ { "active": true, "avgLatency": 0.0, "blockInPorcSize": 0, "connectTime": 1642774711619, "disconnectTimes": 0, "headBlockTimeWeBothHave": 0, "headBlockWeBothHave": "Num:0,ID:0000000000000000d698d4192c56cb6be724a558448e2684802de4d6cd8690dc", "host": "103.9.231.76", "inFlow": 0, "lastBlockUpdateTime": 1642774711764, "lastSyncBlock": "", "localDisconnectReason": "", "needSyncFromPeer": true, "needSyncFromUs": false, "nodeCount": 21, "nodeId": "391d9cfa847629c02ce340f7aa868cbb6c565b5e7a38e38ae8acfcdb5b901cc9ee0777c4f95273426251ee1c1256803e321433ca3798c111cdc2a572b7ae2c3f", "port": 18888, "remainNum": 0, "remoteDisconnectReason": "", "score": 126, "syncBlockRequestedSize": 0, "syncFlag": false, "syncToFetchSize": 0, "syncToFetchSizePeekNum": -1, "unFetchSynNum": 0 }, { "active": true, "avgLatency": 23.0, "blockInPorcSize": 1, "connectTime": 1642774675467, "disconnectTimes": 0, "headBlockTimeWeBothHave": 0, "headBlockWeBothHave": "Num:5499,ID:000000000000157bf1fc1d059d35bad0102ceb942a33880d3d1ae7d721598e87", "host": "95.217.88.118", "inFlow": 593554, "lastBlockUpdateTime": 1642774711963, "lastSyncBlock": "", "localDisconnectReason": "", "needSyncFromPeer": true, "needSyncFromUs": false, "nodeCount": 21, "nodeId": "bf197c1e0d651a67a82dcddf4e759c627d910f9e6b612a04c92226553bb732f677db9bed70db208ea19922a4fe997a143135edb4bc0440788d80e6bdff47ec46", "port": 18888, "remainNum": 18254841, "remoteDisconnectReason": "", "score": 260, "syncBlockRequestedSize": 0, "syncFlag": false, "syncToFetchSize": 2500, "syncToFetchSizePeekNum": 5501, "unFetchSynNum": 18254841 }, { "active": true, "avgLatency": 51.0, "blockInPorcSize": 1, "connectTime": 1642774675487, "disconnectTimes": 0, "headBlockTimeWeBothHave": 0, "headBlockWeBothHave": "Num:5499,ID:000000000000157bf1fc1d059d35bad0102ceb942a33880d3d1ae7d721598e87", "host": "49.12.196.84", "inFlow": 577445, "lastBlockUpdateTime": 1642774711963, "lastSyncBlock": "", "localDisconnectReason": "", "needSyncFromPeer": true, "needSyncFromUs": false, "nodeCount": 21, "nodeId": "46d311417f50ef724acf08f08a598fcebf0dbd8e9ec581a2fbb2c7c3fe1e7b0e192ce51c0d0f10a28e0a7e5e07f1ee5418a98873aae2f3c8205d9323598d2654", "port": 18888, "remainNum": 23159313, "remoteDisconnectReason": "", "score": 260, "syncBlockRequestedSize": 0, "syncFlag": false, "syncToFetchSize": 2500, "syncToFetchSizePeekNum": 5501, "unFetchSynNum": 23159313 }, { "active": true, "avgLatency": 62.0, "blockInPorcSize": 1, "connectTime": 1642774675504, "disconnectTimes": 0, "headBlockTimeWeBothHave": 0, "headBlockWeBothHave": "Num:5499,ID:000000000000157bf1fc1d059d35bad0102ceb942a33880d3d1ae7d721598e87", "host": "161.35.23.57", "inFlow": 558982, "lastBlockUpdateTime": 1642774711963, "lastSyncBlock": "", "localDisconnectReason": "", "needSyncFromPeer": true, "needSyncFromUs": false, "nodeCount": 21, "nodeId": "1f2459c9513949c11b99acbcc8f594dbc93ac2d14ed95bcfbe30a49a2e5b7b9e523742f0543722e94230d557172c5c1a70caa7b7589d28aa88c61c9e26c3de37", "port": 18888, "remainNum": 23109055, "remoteDisconnectReason": "", "score": 256, "syncBlockRequestedSize": 0, "syncFlag": false, "syncToFetchSize": 2500, "syncToFetchSizePeekNum": 5501, "unFetchSynNum": 23109055 }, { "active": true, "avgLatency": 69.0, "blockInPorcSize": 1, "connectTime": 1642774675510, "disconnectTimes": 0, "headBlockTimeWeBothHave": 0, "headBlockWeBothHave": "Num:5499,ID:000000000000157bf1fc1d059d35bad0102ceb942a33880d3d1ae7d721598e87", "host": "142.93.109.129", "inFlow": 542270, "lastBlockUpdateTime": 1642774711963, "lastSyncBlock": "", "localDisconnectReason": "", "needSyncFromPeer": true, "needSyncFromUs": false, "nodeCount": 21, "nodeId": "40ed0a033cfe3d4fab84adf9be6307315ced88c24a93734e36d352ba9ab7ecde1e91fdbed6de9a78f1d04eb9c010464e57d44207493f1bda8f7859fe91bce4f7", "port": 18888, "remainNum": 23159313, "remoteDisconnectReason": "", "score": 255, "syncBlockRequestedSize": 0, "syncFlag": false, "syncToFetchSize": 2500, "syncToFetchSizePeekNum": 5501, "unFetchSynNum": 23159313 }, { "active": true, "avgLatency": 135.0, "blockInPorcSize": 1, "connectTime": 1642774679119, "disconnectTimes": 0, "headBlockTimeWeBothHave": 0, "headBlockWeBothHave": "Num:5499,ID:000000000000157bf1fc1d059d35bad0102ceb942a33880d3d1ae7d721598e87", "host": "47.253.34.98", "inFlow": 505918, "lastBlockUpdateTime": 1642774711963, "lastSyncBlock": "", "localDisconnectReason": "", "needSyncFromPeer": true, "needSyncFromUs": false, "nodeCount": 21, "nodeId": "4132fbdd5895baafc4f2eb39a0032909f1414e7ee8fd506e97827403bead1c5f77b7d974c96c4a34a8828ffa7f9d60ac4ebfd1a066fef43780906d87921cdad4", "port": 18888, "remainNum": 23159127, "remoteDisconnectReason": "", "score": 247, "syncBlockRequestedSize": 0, "syncFlag": false, "syncToFetchSize": 2686, "syncToFetchSizePeekNum": 5501, "unFetchSynNum": 23159127 }, { "active": true, "avgLatency": 190.0, "blockInPorcSize": 1, "connectTime": 1642774682766, "disconnectTimes": 0, "headBlockTimeWeBothHave": 0, "headBlockWeBothHave": "Num:5499,ID:000000000000157bf1fc1d059d35bad0102ceb942a33880d3d1ae7d721598e87", "host": "47.252.17.40", "inFlow": 473700, "lastBlockUpdateTime": 1642774711963, "lastSyncBlock": "", "localDisconnectReason": "", "needSyncFromPeer": true, "needSyncFromUs": false, "nodeCount": 21, "nodeId": "af38266d87db3847535a93adeea6a1aa5189f351be15eb9898d57b9c9dd2f748189d6a1f230879e7c9a560e1fa4fa9341b4b2d664d08dcc52f68ef61c6a00946", "port": 18888, "remainNum": 23158716, "remoteDisconnectReason": "", "score": 247, "syncBlockRequestedSize": 0, "syncFlag": false, "syncToFetchSize": 3097, "syncToFetchSizePeekNum": 5501, "unFetchSynNum": 23158716 }, { "active": true, "avgLatency": 1859.0, "blockInPorcSize": 1, "connectTime": 1642774693728, "disconnectTimes": 0, "headBlockTimeWeBothHave": 0, "headBlockWeBothHave": "Num:5499,ID:000000000000157bf1fc1d059d35bad0102ceb942a33880d3d1ae7d721598e87", "host": "116.66.214.215", "inFlow": 304536, "lastBlockUpdateTime": 1642774711963, "lastSyncBlock": "", "localDisconnectReason": "", "needSyncFromPeer": true, "needSyncFromUs": false, "nodeCount": 21, "nodeId": "3b1f4d102b125184f5076e4acc13e1998b9d901ec00d4abbb559d39dca711e30ac78fb7908e148a64c996024d39c8606ecb5be07aa5a846d7191d9511364d49d", "port": 18888, "remainNum": 1619871, "remoteDisconnectReason": "", "score": 243, "syncBlockRequestedSize": 0, "syncFlag": false, "syncToFetchSize": 3019, "syncToFetchSizePeekNum": 5501, "unFetchSynNum": 1619871 } ], "solidityBlock": "Num:5482,ID:000000000000156a627c60226a540b9794829bfcb73d8561e3ec2cc9cc9af382", "totalFlow": 3556405 }
Could you please tell me how to deploy node without errors?

Peer timeout

12:15:52.669 ERROR [TronJClientWorker-43] net Close peer /84.252.158.57:28888, exception caught
java.lang.NullPointerException: null
at org.tron.core.ChainBaseManager.getGenesisBlockId(ChainBaseManager.java:375)
at org.tron.common.overlay.server.HandshakeHandler.sendHelloMsg(HandshakeHandler.java:123)
at org.tron.common.overlay.server.HandshakeHandler.channelActive(HandshakeHandler.java:81)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:213)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:199)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:192)
at io.netty.channel.ChannelInboundHandlerAdapter.channelActive(ChannelInboundHandlerAdapter.java:64)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:213)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:199)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:192)
at io.netty.channel.ChannelInboundHandlerAdapter.channelActive(ChannelInboundHandlerAdapter.java:64)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:213)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:199)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:192)
at io.netty.channel.ChannelInboundHandlerAdapter.channelActive(ChannelInboundHandlerAdapter.java:64)
at io.netty.handler.timeout.IdleStateHandler.channelActive(IdleStateHandler.java:271)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:213)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:199)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:192)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelActive(DefaultChannelPipeline.java:1422)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:213)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:199)
at io.netty.channel.DefaultChannelPipeline.fireChannelActive(DefaultChannelPipeline.java:941)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:311)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:341)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:634)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:546)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:500)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:460)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
at java.base/java.lang.Thread.run(Thread.java:829)
12:15:52.669 INFO [TronJClientWorker-43] net Close channel:/84.252.158.57:28888 | 1f58ea027578790557d8c6cdf61d634e5bd2f990b6fce9155faa8b10b029b715112b24c805edbc152c71d4dbd2a4241c7f54283c6bfdd8d39a84504aa14be54f

Testnet block height

Hi,
I'm trying to create testnet node with config in this repo
It's working, but the latest block height is 17291
I think that the problem with p2p.version or seeds.list
Can anybody help me?)

full node connection failed

hi, I start to work with the full node and event node of Tron but the full node not working correctly and I can see the above logs in the tron.log file:



01:37:14.885 INFO  [nioEventLoopGroup-6-44] [net](HandshakeHandler.java:92) Handshake receive from /51.15.160.224:49550, type: P2P_HELLO
from {
  address: "51.15.160.224"
  port: 18888
  nodeId: "\342\nc_7r\254\251A\t<J\356Y}\311\n\244\210\\[\206/\0027\306jT\330\323\355S\034\030\202\r\367\303\237\'\374\3143\321\037t\200\301\270\001\242\344[\236w-rE\260\2313/Ok"
}
version: 11111
timestamp: 1641605834875
genesisBlockId {
  hash: "\000\000\000\000\000\000\000\000\036\277\210P\212\003\206\\q\324R\342_MQ\031A\226\241\322+fS\334"
}
solidBlockId {
  hash: "\000\000\000\000\000\344\227\330\352\246o\276u\263\224CC\330=\346\032\343B\376\332\207\242U\005\255n&"
  number: 14981080
}
headBlockId {
  hash: "\000\000\000\000\000\344\227\352\360\024#\212\350\030\356b,+\0346\372g\230\00093\230\334\036h\246V"
  number: 14981098
}

01:37:14.885 ERROR [nioEventLoopGroup-6-44] [net](Channel.java:156) Close peer /51.15.160.224:49550, exception caught
io.netty.handler.codec.DecoderException: java.lang.NullPointerException
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
	at org.tron.common.overlay.server.WireTrafficStats$TrafficStatHandler.channelRead(WireTrafficStats.java:80)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:646)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:546)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:500)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:460)
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.NullPointerException: null
	at org.tron.core.ChainBaseManager.getGenesisBlockId(ChainBaseManager.java:375)
	at org.tron.common.overlay.server.HandshakeHandler.handleHelloMsg(HandshakeHandler.java:160)
	at org.tron.common.overlay.server.HandshakeHandler.decode(HandshakeHandler.java:96)
	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
	... 30 common frames omitted
01:37:14.885 INFO  [nioEventLoopGroup-6-44] [net](TronChannelInitializer.java:48) Close channel:/51.15.160.224:49550 | e20a635f3772aca941093c4aee597dc90aa4885c5b862f0237c66a54d8d3ed531c18820df7c39f27fccc33d11f7480c1b801a2e45b9e772d7245b099332f4f6b
01:37:15.485 INFO  [pool-2-thread-1] [net](SyncPool.java:137) 

============ Peer stats: all 0, active 0, passive 0


01:37:15.940 INFO  [nioEventLoopGroup-6-45] [net](HandshakeHandler.java:77) channel active, /78.83.124.135:19294
01:37:15.940 INFO  [nioEventLoopGroup-6-45] [net](HandshakeHandler.java:92) Handshake receive from /78.83.124.135:19294, type: P2P_HELLO
from {
  address: "78.83.124.135"
  port: 18888
  nodeId: "U\233#\336\264\350p\004\360\"Ue\fS\235\275\"\233\035\360:\355c\374\364)\024i\347\'\243B^\350j]\3655\035\021\"\210\252\323-\326\272\200\232\226\317T\372u\f\031\244Xs\325\300,9\325"
}
version: 11111
timestamp: 1641605835913
genesisBlockId {
  hash: "\000\000\000\000\000\000\000\000\036\277\210P\212\003\206\\q\324R\342_MQ\031A\226\241\322+fS\334"
}
solidBlockId {
  hash: "\000\000\000\000\000/\223\241\351\360\3205B3\310\227]\316\344n}\373\300d\236\316\253YS\275\2727"
  number: 3117985
}
headBlockId {
  hash: "\000\000\000\000\000/\223\263\202\330G\2257\307\341j\267b\034\314W\361\000\216\2603\031\230s+\210\232"
  number: 3118003
}

01:37:15.941 ERROR [nioEventLoopGroup-6-45] [net](Channel.java:156) Close peer /78.83.124.135:19294, exception caught
io.netty.handler.codec.DecoderException: java.lang.NullPointerException
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
	at org.tron.common.overlay.server.WireTrafficStats$TrafficStatHandler.channelRead(WireTrafficStats.java:80)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:646)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:546)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:500)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:460)
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.NullPointerException: null
	at org.tron.core.ChainBaseManager.getGenesisBlockId(ChainBaseManager.java:375)
	at org.tron.common.overlay.server.HandshakeHandler.handleHelloMsg(HandshakeHandler.java:160)
	at org.tron.common.overlay.server.HandshakeHandler.decode(HandshakeHandler.java:96)
	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
	... 30 common frames omitted
01:37:15.941 INFO  [nioEventLoopGroup-6-45] [net](TronChannelInitializer.java:48) Close channel:/78.83.124.135:19294 | 559b23deb4e87004f02255650c539dbd229b1df03aed63fcf4291469e727a3425ee86a5df5351d112288aad32dd6ba809a96cf54fa750c19a45873d5c02c39d5
01:37:16.413 WARN  [TronJClientWorker-38] [net](PeerClient.java:58) connect to 54.250.57.33:18888 fail,cause:connection timed out: /54.250.57.33:18888
01:37:16.413 WARN  [TronJClientWorker-42] [net](PeerClient.java:58) connect to 47.243.225.145:18888 fail,cause:connection timed out: /47.243.225.145:18888
01:37:16.414 INFO  [TronJClientWorker-38] [net](TronChannelInitializer.java:48) Close channel:null | <null>
01:37:16.414 INFO  [TronJClientWorker-42] [net](TronChannelInitializer.java:48) Close channel:null | <null>
01:37:16.414 WARN  [TronJClientWorker-37] [net](PeerClient.java:58) connect to 47.52.204.244:18888 fail,cause:connection timed out: /47.52.204.244:18888
01:37:16.414 INFO  [TronJClientWorker-37] [net](TronChannelInitializer.java:48) Close channel:null | <null>

main_net_config.conf has problem

main_net_config.conf has problem, please fix it.

This property sets the number of milliseconds after the creation of the transaction that is expired, default value is 60000.

trx.expiration.timeInMilliseconds = 60000

how to config when i use my private network(docker-quick-start)

i have used docker-quick-start to deploy a local network. the information about the network:

eventServer: "http://127.0.0.1:8092"
fullNode: "http://127.0.0.1:8190"
name: "localhost"
solidityNode: "http://127.0.0.1:8091"

how to config the java-tron conf file if i want to connect to local network. like subscribe events.

why test_net_config.conf was used `type = mainnet`

Hi,

I trying deploy fullnode on testnet using this script

wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh
bash deploy_tron.sh --app FullNode --net testnet

When I check the config file at /home/ubuntu/FullNode/test_net_config.conf I saw that it was config to use mainnet as bellow

net {
  type = mainnet
  # type = testnet
}

Start tron error in ubuntu 16.04

Hi,
I followed TronDeployment for building tron on ubuntu 16.04
I got this error when tron is starting.

18:08:56.826 INFO [main] o.t.p.FullNode Full node running.
18:08:57.198 INFO [main] o.t.c.c.a.Args Bind address wasn't set, Punching to identify it...
18:08:58.064 INFO [main] o.t.c.c.a.Args UDP local bound to: 10.142.0.12
18:08:58.067 INFO [main] o.t.c.c.a.Args External IP wasn't set, using checkip.amazonaws.com to identify it...
18:08:58.135 INFO [main] o.t.c.c.a.Args External address identified: 35.231.48.233
18:08:58.135 INFO [main] o.t.c.c.a.Args

18:08:58.135 INFO [main] o.t.c.c.a.Args ************************ Net config ************************
18:08:58.136 INFO [main] o.t.c.c.a.Args P2P version: 11111
18:08:58.136 INFO [main] o.t.c.c.a.Args Bind IP: 10.142.0.12
18:08:58.136 INFO [main] o.t.c.c.a.Args External IP: 35.231.48.233
18:08:58.136 INFO [main] o.t.c.c.a.Args Listen port: 18888
18:08:58.136 INFO [main] o.t.c.c.a.Args Discover enable: true
18:08:58.136 INFO [main] o.t.c.c.a.Args Active node size: 0
18:08:58.136 INFO [main] o.t.c.c.a.Args Passive node size: 0
18:08:58.136 INFO [main] o.t.c.c.a.Args Seed node size: 29
18:08:58.136 INFO [main] o.t.c.c.a.Args Max connection: 30
18:08:58.136 INFO [main] o.t.c.c.a.Args Max connection with same IP: 2
18:08:58.136 INFO [main] o.t.c.c.a.Args ************************ Backup config ************************
18:08:58.136 INFO [main] o.t.c.c.a.Args Backup listen port: 10001
18:08:58.136 INFO [main] o.t.c.c.a.Args Backup member size: 0
18:08:58.136 INFO [main] o.t.c.c.a.Args Backup priority: 8
18:08:58.136 INFO [main] o.t.c.c.a.Args

18:08:58.345 INFO [main] o.s.c.a.AnnotationConfigApplicationContext Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@103f852: startup date [Wed Jul 25 18:08:58 UTC 2018]; root of context hierarchy
18:08:59.899 INFO [main] o.s.b.f.a.AutowiredAnnotationBeanPostProcessor JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
18:09:00.329 WARN [main] o.s.c.a.AnnotationConfigApplicationContext Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.net.node.NodeImpl org.tron.common.application.ApplicationImpl.p2pNode; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeImpl' defined in URL [jar:file:/home/bing/FullNode/FullNode.jar!/org/tron/core/net/node/NodeImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.net.node.NodeImpl]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:834)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
at org.tron.program.FullNode.main(FullNode.java:35)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.net.node.NodeImpl org.tron.common.application.ApplicationImpl.p2pNode; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeImpl' defined in URL [jar:file:/home/bing/FullNode/FullNode.jar!/org/tron/core/net/node/NodeImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.net.node.NodeImpl]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:571)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
... 11 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeImpl' defined in URL [jar:file:/home/bing/FullNode/FullNode.jar!/org/tron/core/net/node/NodeImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.net.node.NodeImpl]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1105)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1145)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1069)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:967)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:543)
... 13 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.net.node.NodeImpl]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1098)
... 24 common frames omitted
Caused by: java.lang.IllegalArgumentException: null
at java.util.concurrent.ThreadPoolExecutor.(ThreadPoolExecutor.java:1314)
at java.util.concurrent.ThreadPoolExecutor.(ThreadPoolExecutor.java:1237)
at java.util.concurrent.Executors.newFixedThreadPool(Executors.java:151)
at org.tron.core.net.node.NodeImpl.(NodeImpl.java:204)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
... 26 common frames omitted
18:09:00.342 ERROR [main] general Uncaught exception
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.net.node.NodeImpl org.tron.common.application.ApplicationImpl.p2pNode; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeImpl' defined in URL [jar:file:/home/bing/FullNode/FullNode.jar!/org/tron/core/net/node/NodeImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.net.node.NodeImpl]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:834)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
at org.tron.program.FullNode.main(FullNode.java:35)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.net.node.NodeImpl org.tron.common.application.ApplicationImpl.p2pNode; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeImpl' defined in URL [jar:file:/home/bing/FullNode/FullNode.jar!/org/tron/core/net/node/NodeImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.net.node.NodeImpl]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:571)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
... 11 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeImpl' defined in URL [jar:file:/home/bing/FullNode/FullNode.jar!/org/tron/core/net/node/NodeImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.net.node.NodeImpl]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1105)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1145)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1069)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:967)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:543)
... 13 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.net.node.NodeImpl]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1098)
... 24 common frames omitted
Caused by: java.lang.IllegalArgumentException: null
at java.util.concurrent.ThreadPoolExecutor.(ThreadPoolExecutor.java:1314)
at java.util.concurrent.ThreadPoolExecutor.(ThreadPoolExecutor.java:1237)
at java.util.concurrent.Executors.newFixedThreadPool(Executors.java:151)
at org.tron.core.net.node.NodeImpl.(NodeImpl.java:204)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
... 26 common frames omitted

TRC-20 USDT Test Token in not showing Nile Testnet.

I have been developing an application that transfers TRC-20 USDT Token from one address to another address with an integrated Tronlink Wallet. However, in order to make a test of the application, I needed a Test token. I also received a test token but the token is not displaying in the TronLink Wallet.

How to solve this problem? Kindly, Provide me with valid articles or references.

javax annotation symbol not found

I'm using openjdk 11 and code doesn't compile. the error is cannot find symbol
@javax.annotation.Generated

After adding this line to dependencies in build.gradle file it compiled successfully
compile group: 'javax.annotation', name: 'javax.annotation-api', version: '1.3.2'

CentOS7: SolidityNode not exposing 8090/tcp

Hi, I've used readme.md exposed here:
https://github.com/tronprotocol/TronDeployment
Next, I made some systemd unit files:

[Unit]
Description=TRON FullNode
After=network.target

[Service]
Type=simple
User=tron
Group=tron
WorkingDirectory=/home/tron/FullNode

ExecStart=/usr/bin/java -jar /home/tron/FullNode/FullNode.jar -c /home/tron/FullNode/main_net_config.conf
KillSignal=15
KillMode=process
Restart=on-failure
LimitNOFILE=5000000

GuessMainPID=no

[Install]
WantedBy=multi-user.target
[Unit]
Description=TRON SolidityNode
After=network.target

[Service]
Type=simple
User=tron
Group=tron
WorkingDirectory=/home/tron/SolidityNode

ExecStart=/usr/bin/java -jar /home/tron/SolidityNode/SolidityNode.jar --trust-node 127.0.0.1:50051 -c /home/tron/SolidityNode/main_net_config.conf
KillSignal=15
KillMode=process
Restart=on-failure
LimitNOFILE=5000000

GuessMainPID=no

[Install]
WantedBy=multi-user.target

Configuration of Main Node shows that it has to listen on 50051:

# grep 50051 -B3 -A2 /home/tron/FullNode/main_net_config.conf 
node {
  # trust node for solidity node
  # trustNode = "ip:port"
  trustNode = "127.0.0.1:50051"

  # expose extension api to public or not
--
  }

  rpc {
    port = 50051

    # Number of gRPC thread, default availableProcessors / 2

Unfortunately, FullNode exposes port 8090/tcp, I can't get 8091/tcp from SolidityNode

# netstat -nlp | grep 809
tcp6       0      0 :::8090                 :::*                    LISTEN      8773/java           

bc: command not found

bash deploy_tron.sh --app FullNode --net testnet
deploy_tron.sh: line 66: bc: command not found

脚本安装失败

原因在于:每次执行bash deploy_tron.sh --app FullNode --net testnet
会重新更新 java-tron 下面的build.gradle ,而这个文件下的

repositories {
        maven { url 'http://mvnrepository.com' }
        mavenCentral()
        jcenter()
    }

是需要修改为

repositories {
        maven { url 'http://central.maven.org/maven2' }
        mavenCentral()
        jcenter()
    }

How can I get the full explanation of all the configs in config file?

Hi~
I'm running some tron fullnodes nowadays, but I still don't know all the meanings of each parameter inside the config file like main_net_config.conf. It do have some simple explanations for some of the parameters but not for all. Can you tell me how to find out all the explanation? For example, what is "fastForward" and how to use it?
BTW, I start up nodes using the -c main_net_config.conf. I wonder whether I can use start up parameters to set up the config instead of modifying the config file?
Thanks!

TLLM21wteSPs4hKjbxgmH1L6poyMjeTbHm

wallet> GenerateAddress { "address": "TU6JdEDQGPus64LTMksvnxF2cv4FQrXPCa", "privateKey": "b1ba1db577a36421924a87026cda27523851c6e88123d0a0a1def9a974376176" } #59

python import hashlib def hash_bitcoin_address(address): # Convert the address to bytes address_bytes = bytes(address, 'utf-8') # Perform double SHA256 hash sha256_hash = hashlib.sha256(address_bytes).digest() double_sha256_hash = hashlib.sha256(sha256_hash).digest() # Return the hash as a hexadecimal string return double_sha256_hash.hex() # Example usage bitcoin_address = "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" hashed_address = hash_bitcoin_address() print(":bc1q9f526ypqvtxam6d09yjr387kymhjr4pzt4vvhw", hashed_address) ``` 62e907b15cbf27d5425399ebf6f0fb50ebb88f18

Build failed

root@04c1cf334f83:/# bash deploy_tron.sh --app SolidityNode --net mainnet --db keep
download code from git repository
Cloning into 'java-tron'...
remote: Enumerating objects: 27, done.
remote: Counting objects: 100% (27/27), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 164053 (delta 6), reused 12 (delta 1), pack-reused 164026
Receiving objects: 100% (164053/164053), 116.00 MiB | 1.22 MiB/s, done.
Resolving deltas: 100% (85450/85450), done.
Checking connectivity... done.
--2020-01-16 21:18:58--  https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/main_net_config.conf
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13591 (13K) [text/plain]
Saving to: 'main_net_config.conf'

main_net_config.conf               100%[================================================================>]  13.27K  --.-KB/s    in 0.03s

2020-01-16 21:18:58 (383 KB/s) - 'main_net_config.conf' saved [13591/13591]

Branch master set up to track remote branch master from origin.
Switched to a new branch 'master'
HEAD is now at aab6e09 Merge pull request #2865 from tronprotocol/version/Odyssey-v3.6.5-15-g6405454d0
Switched to a new branch 'release'
Downloading https://services.gradle.org/distributions/gradle-4.3-all.zip
...........................................................................................
Unzipping /root/.gradle/wrapper/dists/gradle-4.3-all/2c1rgv6vofd95kl0ugolfeu5r/gradle-4.3-all.zip to /root/.gradle/wrapper/dists/gradle-4.3-all/2c1rgv6vofd95kl0ugolfeu5r
Set executable permissions for: /root/.gradle/wrapper/dists/gradle-4.3-all/2c1rgv6vofd95kl0ugolfeu5r/gradle-4.3/bin/gradle
Download https://repo1.maven.org/maven2/com/google/protobuf/protobuf-gradle-plugin/0.8.3/protobuf-gradle-plugin-0.8.3.pom
Download https://repo1.maven.org/maven2/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/2.6/sonarqube-gradle-plugin-2.6.pom
Download https://jcenter.bintray.com/com/github/jengelman/gradle/plugins/shadow/2.0.2/shadow-2.0.2.pom
Download https://repo1.maven.org/maven2/com/google/guava/guava/18.0/guava-18.0.pom
Download https://repo1.maven.org/maven2/com/google/guava/guava-parent/18.0/guava-parent-18.0.pom
Download https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Download https://repo1.maven.org/maven2/commons-lang/commons-lang/2.6/commons-lang-2.6.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/17/commons-parent-17.pom
Download https://repo1.maven.org/maven2/org/apache/apache/7/apache-7.pom
Download https://repo1.maven.org/maven2/com/google/gradle/osdetector-gradle-plugin/1.4.0/osdetector-gradle-plugin-1.4.0.pom
Download https://repo1.maven.org/maven2/org/codehaus/groovy/groovy-backports-compat23/2.4.4/groovy-backports-compat23-2.4.4.pom
Download https://repo1.maven.org/maven2/org/sonarsource/scanner/api/sonar-scanner-api/2.9.0.887/sonar-scanner-api-2.9.0.887.pom
Download https://repo1.maven.org/maven2/org/sonarsource/scanner/api/sonar-scanner-api-parent/2.9.0.887/sonar-scanner-api-parent-2.9.0.887.pom
Download https://repo1.maven.org/maven2/org/sonarsource/parent/parent/40/parent-40.pom
Download https://repo1.maven.org/maven2/kr/motd/maven/os-maven-plugin/1.4.0.Final/os-maven-plugin-1.4.0.Final.pom
Download https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
Download https://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/3.2.1/maven-plugin-api-3.2.1.pom
Download https://repo1.maven.org/maven2/org/apache/maven/maven/3.2.1/maven-3.2.1.pom
Download https://repo1.maven.org/maven2/org/apache/maven/maven-parent/23/maven-parent-23.pom
Download https://repo1.maven.org/maven2/org/apache/apache/13/apache-13.pom
Download https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/3.0.17/plexus-utils-3.0.17.pom
Download https://repo1.maven.org/maven2/org/codehaus/plexus/plexus/3.3.1/plexus-3.3.1.pom
Download https://repo1.maven.org/maven2/org/sonatype/spice/spice-parent/17/spice-parent-17.pom
Download https://repo1.maven.org/maven2/org/sonatype/forge/forge-parent/10/forge-parent-10.pom
Download https://repo1.maven.org/maven2/org/apache/maven/maven-model/3.2.1/maven-model-3.2.1.pom
Download https://repo1.maven.org/maven2/org/eclipse/sisu/org.eclipse.sisu.plexus/0.0.0.M5/org.eclipse.sisu.plexus-0.0.0.M5.pom
Download https://repo1.maven.org/maven2/org/eclipse/sisu/sisu-plexus/0.0.0.M5/sisu-plexus-0.0.0.M5.pom
Download https://repo1.maven.org/maven2/org/apache/maven/maven-artifact/3.2.1/maven-artifact-3.2.1.pom
Download https://repo1.maven.org/maven2/javax/enterprise/cdi-api/1.0/cdi-api-1.0.pom
Download https://repo1.maven.org/maven2/org/jboss/weld/weld-api-parent/1.0/weld-api-parent-1.0.pom
Download https://repo1.maven.org/maven2/org/jboss/weld/weld-api-bom/1.0/weld-api-bom-1.0.pom
Download https://repo1.maven.org/maven2/org/jboss/weld/weld-parent/6/weld-parent-6.pom
Download https://repo1.maven.org/maven2/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M5/org.eclipse.sisu.inject-0.0.0.M5.pom
Download https://repo1.maven.org/maven2/org/eclipse/sisu/sisu-inject/0.0.0.M5/sisu-inject-0.0.0.M5.pom
Download https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.pom
Download https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-containers/1.5.5/plexus-containers-1.5.5.pom
Download https://repo1.maven.org/maven2/org/codehaus/plexus/plexus/2.0.7/plexus-2.0.7.pom
Download https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-classworlds/2.4/plexus-classworlds-2.4.pom
Download https://repo1.maven.org/maven2/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0.pom
Download https://repo1.maven.org/maven2/org/sonatype/sisu/inject/guice-parent/3.1.0/guice-parent-3.1.0.pom
Download https://repo1.maven.org/maven2/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.pom
Download https://repo1.maven.org/maven2/javax/inject/javax.inject/1/javax.inject-1.pom
Download https://repo1.maven.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.pom
Download https://repo1.maven.org/maven2/com/google/protobuf/protobuf-gradle-plugin/0.8.3/protobuf-gradle-plugin-0.8.3.jar
Download https://repo1.maven.org/maven2/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/2.6/sonarqube-gradle-plugin-2.6.jar
Download https://repo1.maven.org/maven2/com/google/gradle/osdetector-gradle-plugin/1.4.0/osdetector-gradle-plugin-1.4.0.jar
Download https://repo1.maven.org/maven2/kr/motd/maven/os-maven-plugin/1.4.0.Final/os-maven-plugin-1.4.0.Final.jar
Download https://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/3.2.1/maven-plugin-api-3.2.1.jar
Download https://repo1.maven.org/maven2/org/eclipse/sisu/org.eclipse.sisu.plexus/0.0.0.M5/org.eclipse.sisu.plexus-0.0.0.M5.jar
Download https://repo1.maven.org/maven2/com/google/guava/guava/18.0/guava-18.0.jar
Download https://repo1.maven.org/maven2/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
Download https://repo1.maven.org/maven2/org/codehaus/groovy/groovy-backports-compat23/2.4.4/groovy-backports-compat23-2.4.4.jar
Download https://repo1.maven.org/maven2/org/sonarsource/scanner/api/sonar-scanner-api/2.9.0.887/sonar-scanner-api-2.9.0.887.jar
Download https://repo1.maven.org/maven2/org/apache/maven/maven-model/3.2.1/maven-model-3.2.1.jar
Download https://repo1.maven.org/maven2/org/apache/maven/maven-artifact/3.2.1/maven-artifact-3.2.1.jar
Download https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/3.0.17/plexus-utils-3.0.17.jar
Download https://repo1.maven.org/maven2/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
Download https://repo1.maven.org/maven2/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
Download https://repo1.maven.org/maven2/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M5/org.eclipse.sisu.inject-0.0.0.M5.jar
Download https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
Download https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-classworlds/2.4/plexus-classworlds-2.4.jar
Download https://repo1.maven.org/maven2/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
Download https://repo1.maven.org/maven2/javax/inject/javax.inject/1/javax.inject-1.jar
Download https://repo1.maven.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
Download https://jcenter.bintray.com/com/github/jengelman/gradle/plugins/shadow/2.0.2/shadow-2.0.2.jar
Download https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.pom
Download https://repo1.maven.org/maven2/org/slf4j/slf4j-parent/1.7.25/slf4j-parent-1.7.25.pom
Download https://repo1.maven.org/maven2/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.pom
Download https://repo1.maven.org/maven2/ch/qos/logback/logback-parent/1.2.3/logback-parent-1.2.3.pom
Download https://repo1.maven.org/maven2/org/projectlombok/lombok/1.18.2/lombok-1.18.2.pom
Download https://repo1.maven.org/maven2/commons-codec/commons-codec/1.11/commons-codec-1.11.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/42/commons-parent-42.pom
Download https://repo1.maven.org/maven2/org/apache/apache/18/apache-18.pom
Download https://repo1.maven.org/maven2/com/madgag/spongycastle/core/1.58.0.0/core-1.58.0.0.pom
Download https://repo1.maven.org/maven2/com/madgag/spongycastle/prov/1.58.0.0/prov-1.58.0.0.pom
Download https://repo1.maven.org/maven2/com/google/guava/guava/24.1-jre/guava-24.1-jre.pom
Download https://repo1.maven.org/maven2/com/google/guava/guava-parent/24.1-jre/guava-parent-24.1-jre.pom
Download https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.pom
Download https://repo1.maven.org/maven2/com/google/protobuf/protobuf-parent/3.4.0/protobuf-parent-3.4.0.pom
Download https://repo1.maven.org/maven2/com/google/google/1/google-1.pom
Download https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java-util/3.4.0/protobuf-java-util-3.4.0.pom
Download https://repo1.maven.org/maven2/org/iq80/leveldb/leveldb/0.7/leveldb-0.7.pom
Download https://repo1.maven.org/maven2/org/iq80/leveldb/leveldb-project/0.7/leveldb-project-0.7.pom
Download https://repo1.maven.org/maven2/org/rocksdb/rocksdbjni/5.15.10/rocksdbjni-5.15.10.pom
Download https://repo1.maven.org/maven2/org/fusesource/leveldbjni/leveldbjni-all/1.8/leveldbjni-all-1.8.pom
Download https://repo1.maven.org/maven2/org/fusesource/leveldbjni/leveldbjni-project/1.8/leveldbjni-project-1.8.pom
Download https://repo1.maven.org/maven2/org/fusesource/fusesource-pom/1.9/fusesource-pom-1.9.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-collections4/4.0/commons-collections4-4.0.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/32/commons-parent-32.pom
Download https://repo1.maven.org/maven2/com/typesafe/config/1.3.2/config-1.3.2.pom
Download https://repo1.maven.org/maven2/com/google/code/findbugs/jsr305/3.0.0/jsr305-3.0.0.pom
Download https://repo1.maven.org/maven2/com/cedarsoftware/java-util/1.8.0/java-util-1.8.0.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/37/commons-parent-37.pom
Download https://repo1.maven.org/maven2/org/apache/apache/16/apache-16.pom
Download https://repo1.maven.org/maven2/org/springframework/spring-context/4.2.0.RELEASE/spring-context-4.2.0.RELEASE.pom
Download https://repo1.maven.org/maven2/org/springframework/spring-tx/4.2.0.RELEASE/spring-tx-4.2.0.RELEASE.pom
Download https://repo1.maven.org/maven2/com/beust/jcommander/1.72/jcommander-1.72.pom
Download https://repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.pom
Download https://repo1.maven.org/maven2/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.pom
Download https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.16/jansi-1.16.pom
Download https://repo1.maven.org/maven2/org/fusesource/jansi/jansi-project/1.16/jansi-project-1.16.pom
Download https://repo1.maven.org/maven2/org/fusesource/fusesource-pom/1.11/fusesource-pom-1.11.pom
Download https://repo1.maven.org/maven2/com/google/inject/guice/4.1.0/guice-4.1.0.pom
Download https://repo1.maven.org/maven2/com/google/inject/guice-parent/4.1.0/guice-parent-4.1.0.pom
Download https://repo1.maven.org/maven2/com/google/google/5/google-5.pom
Download https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.8.5/jackson-databind-2.8.5.pom
Download https://repo1.maven.org/maven2/com/fasterxml/jackson/jackson-parent/2.8/jackson-parent-2.8.pom
Download https://repo1.maven.org/maven2/com/fasterxml/oss-parent/27/oss-parent-27.pom
Download https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.8.5/jackson-core-2.8.5.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-math/2.2/commons-math-2.2.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/18/commons-parent-18.pom
Download https://repo1.maven.org/maven2/joda-time/joda-time/2.3/joda-time-2.3.pom
Download https://repo1.maven.org/maven2/io/dropwizard/metrics/metrics-core/3.1.2/metrics-core-3.1.2.pom
Download https://repo1.maven.org/maven2/io/dropwizard/metrics/metrics-parent/3.1.2/metrics-parent-3.1.2.pom
Download https://repo1.maven.org/maven2/io/grpc/grpc-netty/1.14.0/grpc-netty-1.14.0.pom
Download https://repo1.maven.org/maven2/io/grpc/grpc-protobuf/1.14.0/grpc-protobuf-1.14.0.pom
Download https://repo1.maven.org/maven2/io/grpc/grpc-stub/1.14.0/grpc-stub-1.14.0.pom
Download https://repo1.maven.org/maven2/com/carrotsearch/java-sizeof/0.0.5/java-sizeof-0.0.5.pom
Download https://repo1.maven.org/maven2/org/aspectj/aspectjrt/1.8.13/aspectjrt-1.8.13.pom
Download https://repo1.maven.org/maven2/org/aspectj/aspectjweaver/1.8.13/aspectjweaver-1.8.13.pom
Download https://repo1.maven.org/maven2/org/aspectj/aspectjtools/1.8.13/aspectjtools-1.8.13.pom
Download https://repo1.maven.org/maven2/com/googlecode/cqengine/cqengine/2.12.4/cqengine-2.12.4.pom
Download https://repo1.maven.org/maven2/com/google/api/grpc/googleapis-common-protos/0.0.3/googleapis-common-protos-0.0.3.pom
Download https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-server/9.4.11.v20180605/jetty-server-9.4.11.v20180605.pom
Download https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-project/9.4.11.v20180605/jetty-project-9.4.11.v20180605.pom
Download https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-servlet/9.4.11.v20180605/jetty-servlet-9.4.11.v20180605.pom
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpasyncclient/4.1.1/httpasyncclient-4.1.1.pom
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-asyncclient/4.1.1/httpcomponents-asyncclient-4.1.1.pom
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/project/7/project-7.pom
Download https://repo1.maven.org/maven2/io/vavr/vavr/0.9.2/vavr-0.9.2.pom
Download https://repo1.maven.org/maven2/io/vavr/vavr-parent/0.9.2/vavr-parent-0.9.2.pom
Download https://repo1.maven.org/maven2/org/pf4j/pf4j/2.5.0/pf4j-2.5.0.pom
Download https://repo1.maven.org/maven2/org/pf4j/pf4j-parent/2.5.0/pf4j-parent-2.5.0.pom
Download https://repo1.maven.org/maven2/org/zeromq/jeromq/0.5.0/jeromq-0.5.0.pom
Download https://repo1.maven.org/maven2/org/slf4j/jcl-over-slf4j/1.7.25/jcl-over-slf4j-1.7.25.pom
Download https://repo1.maven.org/maven2/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.pom
Download https://repo1.maven.org/maven2/org/checkerframework/checker-compat-qual/2.0.0/checker-compat-qual-2.0.0.pom
Download https://repo1.maven.org/maven2/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.pom
Download https://repo1.maven.org/maven2/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.pom
Download https://repo1.maven.org/maven2/org/codehaus/mojo/animal-sniffer-parent/1.14/animal-sniffer-parent-1.14.pom
Download https://repo1.maven.org/maven2/org/codehaus/mojo/mojo-parent/34/mojo-parent-34.pom
Download https://repo1.maven.org/maven2/org/codehaus/codehaus-parent/4/codehaus-parent-4.pom
Download https://repo1.maven.org/maven2/com/google/errorprone/error_prone_annotations/2.1.3/error_prone_annotations-2.1.3.pom
Download https://repo1.maven.org/maven2/com/google/errorprone/error_prone_parent/2.1.3/error_prone_parent-2.1.3.pom
Download https://repo1.maven.org/maven2/com/google/code/gson/gson/2.7/gson-2.7.pom
Download https://repo1.maven.org/maven2/com/google/code/gson/gson-parent/2.7/gson-parent-2.7.pom
Download https://repo1.maven.org/maven2/org/iq80/leveldb/leveldb-api/0.7/leveldb-api-0.7.pom
Download https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/5/commons-parent-5.pom
Download https://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom
Download https://repo1.maven.org/maven2/com/cedarsoftware/json-io/2.4.1/json-io-2.4.1.pom
Download https://repo1.maven.org/maven2/org/springframework/spring-aop/4.2.0.RELEASE/spring-aop-4.2.0.RELEASE.pom
Download https://repo1.maven.org/maven2/org/springframework/spring-core/4.2.0.RELEASE/spring-core-4.2.0.RELEASE.pom
Download https://repo1.maven.org/maven2/org/springframework/spring-expression/4.2.0.RELEASE/spring-expression-4.2.0.RELEASE.pom
Download https://repo1.maven.org/maven2/org/springframework/spring-beans/4.2.0.RELEASE/spring-beans-4.2.0.RELEASE.pom
Download https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.pom
Download https://repo1.maven.org/maven2/org/hamcrest/hamcrest-parent/1.3/hamcrest-parent-1.3.pom
Download https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.8.0/jackson-annotations-2.8.0.pom
Download https://repo1.maven.org/maven2/io/grpc/grpc-core/maven-metadata.xml
Download https://repo1.maven.org/maven2/io/grpc/grpc-core/1.14.0/grpc-core-1.14.0.pom
Download https://repo1.maven.org/maven2/io/netty/netty-codec-http2/maven-metadata.xml
Download https://repo1.maven.org/maven2/io/netty/netty-codec-http2/4.1.27.Final/netty-codec-http2-4.1.27.Final.pom
Download https://repo1.maven.org/maven2/io/netty/netty-parent/4.1.27.Final/netty-parent-4.1.27.Final.pom
Download https://repo1.maven.org/maven2/io/netty/netty-handler-proxy/4.1.27.Final/netty-handler-proxy-4.1.27.Final.pom
Download https://repo1.maven.org/maven2/com/google/api/grpc/proto-google-common-protos/1.0.0/proto-google-common-protos-1.0.0.pom
Download https://repo1.maven.org/maven2/io/grpc/grpc-protobuf-lite/1.14.0/grpc-protobuf-lite-1.14.0.pom
Download https://repo1.maven.org/maven2/com/googlecode/concurrent-trees/concurrent-trees/2.6.0/concurrent-trees-2.6.0.pom
Download https://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.16.1/sqlite-jdbc-3.16.1.pom
Download https://repo1.maven.org/maven2/com/esotericsoftware/kryo/3.0.3/kryo-3.0.3.pom
Download https://repo1.maven.org/maven2/com/esotericsoftware/kryo-parent/3.0.3/kryo-parent-3.0.3.pom
Download https://repo1.maven.org/maven2/de/javakaffee/kryo-serializers/0.37/kryo-serializers-0.37.pom
Download https://repo1.maven.org/maven2/org/antlr/antlr4-runtime/4.5/antlr4-runtime-4.5.pom
Download https://repo1.maven.org/maven2/net/jodah/typetools/0.4.7/typetools-0.4.7.pom
Download https://repo1.maven.org/maven2/com/googlecode/cqengine/cqengine-stream-support/1.1.0/cqengine-stream-support-1.1.0.pom
Download https://repo1.maven.org/maven2/org/javassist/javassist/3.18.2-GA/javassist-3.18.2-GA.pom
Download https://repo1.maven.org/maven2/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.pom
Download https://repo1.maven.org/maven2/net/java/jvnet-parent/3/jvnet-parent-3.pom
Download https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-io/9.4.11.v20180605/jetty-io-9.4.11.v20180605.pom
Download https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-http/9.4.11.v20180605/jetty-http-9.4.11.v20180605.pom
Download https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-security/9.4.11.v20180605/jetty-security-9.4.11.v20180605.pom
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.pom
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.4.4/httpcomponents-core-4.4.4.pom
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.1/httpclient-4.5.1.pom
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.5.1/httpcomponents-client-4.5.1.pom
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore-nio/4.4.4/httpcore-nio-4.4.4.pom
Download https://repo1.maven.org/maven2/io/vavr/vavr-match/0.9.2/vavr-match-0.9.2.pom
Download https://repo1.maven.org/maven2/com/github/zafarkhaja/java-semver/0.9.0/java-semver-0.9.0.pom
Download https://repo1.maven.org/maven2/eu/neilalexander/jnacl/1.0.0/jnacl-1.0.0.pom
Download https://repo1.maven.org/maven2/io/netty/netty-transport/4.1.27.Final/netty-transport-4.1.27.Final.pom
Download https://repo1.maven.org/maven2/io/netty/netty-codec-http/4.1.27.Final/netty-codec-http-4.1.27.Final.pom
Download https://repo1.maven.org/maven2/io/netty/netty-codec-socks/4.1.27.Final/netty-codec-socks-4.1.27.Final.pom
Download https://repo1.maven.org/maven2/com/esotericsoftware/reflectasm/1.10.1/reflectasm-1.10.1.pom
Download https://repo1.maven.org/maven2/org/objenesis/objenesis/2.1/objenesis-2.1.pom
Download https://repo1.maven.org/maven2/org/objenesis/objenesis-parent/2.1/objenesis-parent-2.1.pom
Download https://repo1.maven.org/maven2/com/esotericsoftware/minlog/1.3.0/minlog-1.3.0.pom
Download https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-util/9.4.11.v20180605/jetty-util-9.4.11.v20180605.pom
Download https://repo1.maven.org/maven2/io/netty/netty-buffer/4.1.27.Final/netty-buffer-4.1.27.Final.pom
Download https://repo1.maven.org/maven2/io/netty/netty-resolver/4.1.27.Final/netty-resolver-4.1.27.Final.pom
Download https://repo1.maven.org/maven2/io/netty/netty-codec/4.1.27.Final/netty-codec-4.1.27.Final.pom
Download https://repo1.maven.org/maven2/org/ow2/asm/asm/5.0.3/asm-5.0.3.pom
Download https://repo1.maven.org/maven2/org/ow2/asm/asm-parent/5.0.3/asm-parent-5.0.3.pom
Download https://repo1.maven.org/maven2/org/ow2/ow2/1.3/ow2-1.3.pom
Download https://repo1.maven.org/maven2/io/netty/netty-common/4.1.27.Final/netty-common-4.1.27.Final.pom
Download https://repo1.maven.org/maven2/com/alibaba/fastjson/1.2.60/fastjson-1.2.60.pom
Download https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.5.1/protobuf-java-3.5.1.pom
Download https://repo1.maven.org/maven2/com/google/protobuf/protobuf-parent/3.5.1/protobuf-parent-3.5.1.pom
Download https://repo1.maven.org/maven2/io/grpc/grpc-context/1.14.0/grpc-context-1.14.0.pom
Download https://repo1.maven.org/maven2/io/opencensus/opencensus-contrib-grpc-metrics/0.12.3/opencensus-contrib-grpc-metrics-0.12.3.pom
Download https://repo1.maven.org/maven2/io/opencensus/opencensus-api/0.12.3/opencensus-api-0.12.3.pom
Download https://repo1.maven.org/maven2/commons-logging/commons-logging/1.2/commons-logging-1.2.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/34/commons-parent-34.pom

FAILURE: Build failed with an exception.

* Where:
Build file '/SolidityNode/java-tron/build.gradle' line: 336

* What went wrong:
Could not determine the dependencies of task ':buildDBConvertJar'.
> Could not resolve all files for configuration ':compile'.
   > Could not resolve io.grpc:grpc-core:[1.14.0].
     Required by:
         project : > io.grpc:grpc-netty:1.14.0
      > Could not resolve io.grpc:grpc-core:[1.14.0].
         > Failed to list versions for io.grpc:grpc-core.
            > Unable to load Maven meta-data from http://repo.spring.io/plugins-release/io/grpc/grpc-core/maven-metadata.xml.
               > Could not get resource 'http://repo.spring.io/plugins-release/io/grpc/grpc-core/maven-metadata.xml'.
                  > Could not GET 'http://repo.spring.io/plugins-release/io/grpc/grpc-core/maven-metadata.xml'. Received status code 403 from server: Forbidden
   > Could not resolve io.netty:netty-codec-http2:[4.1.27.Final].
     Required by:
         project : > io.grpc:grpc-netty:1.14.0
      > Could not resolve io.netty:netty-codec-http2:[4.1.27.Final].
         > Failed to list versions for io.netty:netty-codec-http2.
            > Unable to load Maven meta-data from http://repo.spring.io/plugins-release/io/netty/netty-codec-http2/maven-metadata.xml.
               > Could not get resource 'http://repo.spring.io/plugins-release/io/netty/netty-codec-http2/maven-metadata.xml'.
                  > Could not GET 'http://repo.spring.io/plugins-release/io/netty/netty-codec-http2/maven-metadata.xml'. Received status code 403 from server: Forbidden

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 56s
cp: cannot stat '//SolidityNode/java-tron/build/libs/SolidityNode.jar': No such file or directory
SolidityNode killed
starting SolidityNode

run SolidityNode failed, please check your parameters

java-tron/build/libs/FullNode.jar’: No such file or directory

After running script bash deploy_tron.sh, I am getting the error " cannot stat 'FullNode/java-tron/build/libs/FullNode.jar’: No such file or directory. when i go inside the 'java-tron/build/libs/' there is no FullNode.jar. Also when i tried to build project using ./gradlew build. the error is coming

`What went wrong:
Could not determine the dependencies of task ':buildKeystoreFactoryJar'.

Could not resolve all files for configuration ':compile'.
Could not resolve org.apache.commons:commons-collections4:4.0.
Required by:
project :
> Could not resolve org.apache.commons:commons-collections4:4.0.
> Could not parse POM /home/abhishek/.m2/repository/org/apache/commons/commons-collections4/4.0/commons-collections4-4.0.pom
> The processing instruction target matching "[xX][mM][lL]" is not allowed.
Could not resolve org.apache.commons:commons-lang3:3.4.
Required by:
project :
> Could not resolve org.apache.commons:commons-lang3:3.4.
> Could not parse POM /home/abhishek/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.pom
> Could not resolve org.apache.commons:commons-parent:37.
> Could not resolve org.apache.commons:commons-parent:37.
> Could not parse POM /home/abhishek/.m2/repository/org/apache/commons/commons-parent/37/commons-parent-37.pom
> Content is not allowed in trailing section.

`

"

Testnet fails to start

When attempting to start a Tron Fullnode on the Tesnet it fails with the following error:

$ java -Xmx2g -XX:+UseConcMarkSweepGC -jar FullNode.jar -c test_net_config.conf
Exception in thread "main" java.lang.IllegalArgumentException: The address() must be 21 bytes.
	at org.tron.common.args.Account.setAddress(Account.java:53)
	at org.tron.core.config.args.Args.createAccount(Args.java:851)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
	at org.tron.core.config.args.Args.getAccountsFromConfig(Args.java:844)
	at org.tron.core.config.args.Args.setParam(Args.java:391)
	at org.tron.program.FullNode.main(FullNode.java:54)

The testnet configuration was found from this github repo:

The jar was downloaded from the 4.4.0 release:

Java version:

$ java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)

Documentation referenced:

Any help will be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.