Git Product home page Git Product logo

bttc's Introduction

Bttc

Official Golang implementation of the BTTC protocol. It is a fork of Go Ethereum - https://github.com/ethereum/go-ethereum and EVM compatible.

Building the source

Building bttc requires both a Go (version 1.14 or later) and a C compiler. You can install them using your favourite package manager. Once the dependencies are installed, run

make bttc

or, to build the full suite of utilities:

make bttc-all

License

The go-ethereum library (i.e. all code outside of the cmd directory) is licensed under the GNU Lesser General Public License v3.0, also included in our repository in the COPYING.LESSER file.

The go-ethereum binaries (i.e. all code inside of the cmd directory) is licensed under the GNU General Public License v3.0, also included in our repository in the COPYING file.

bttc's People

Contributors

acud avatar arachnid avatar atvanguard avatar bladehan1 avatar cjentzsch avatar cubedro avatar debris avatar fjl avatar gavofyork avatar gballet avatar gluk256 avatar holiman avatar holisticode avatar janos avatar jdkanani avatar jpeletier avatar jsvisa avatar karalabe avatar ligi avatar mariusvanderwijden avatar nolash avatar nonsense avatar obscuren avatar renaynay avatar rjl493456442 avatar tgerring avatar ucwong avatar vbuterin avatar zelig avatar zsfelfoldi 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bttc's Issues

Invalid memory address or nil pointer dereference

Got below error in the final step.

CentOS 7
$ ./delivery-start.sh
+ NODE_DIR=/data/bttc/node
+ DELIVERY_HOME_DIR=/data/bttc/node/deliveryd
+ deliveryd --home /data/bttc/node/deliveryd start
I[2022-01-08|16:05:45.467] starting ABCI with Tendermint module=main
ERROR: error during handshake: error on replay: validator set is nil in genesis and still empty after InitChain

$ ./bttc-start.sh
INFO [01-08|15:44:00.628] Starting pprof server addr=http://0.0.0.0:7071/debug/pprof
INFO [01-08|15:44:00.628] Enabling metrics collection
INFO [01-08|15:44:00.632] Maximum peer count ETH=200 LES=0 total=200
INFO [01-08|15:44:00.632] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
WARN [01-08|15:44:00.632] Found deprecated node list file /data/bttc/node/bttc/data/bor/static-nodes.json, please use the TOML config file instead.
WARN [01-08|15:44:00.632] The generic --miner.gastarget flag is deprecated and will be removed in the future!
INFO [01-08|15:44:00.633] Set global gas cap cap=50,000,000
INFO [01-08|15:44:00.633] Allocated trie memory caches clean=154.00MiB dirty=256.00MiB
INFO [01-08|15:44:00.633] Allocated cache and file handles database=/data/bttc/node/bttc/data/bor/chaindata cache=512.00MiB handles=2048
INFO [01-08|15:44:00.650] Opened ancient database database=/data/bttc/node/bttc/data/bor/chaindata/ancient readonly=false
INFO [01-08|15:44:00.652] Initialised chain configuration config="{ChainID: 1029 Homestead: 0 DAO: DAOSupport: false EIP150: 0 EIP155: 0 EIP158: 0 Byzantium: 0 Constantinople: 0 Petersburg: 0 Istanbul: 0, Muir Glacier: 0, Berlin: 0, London: , Engine: bor}"
INFO [01-08|15:44:00.653] Unprotected transactions allowed
INFO [01-08|15:44:00.653] Gasprice oracle is ignoring threshold set threshold=2
INFO [01-08|15:44:00.656] Initialising Ethereum protocol network=1029 dbversion=8
INFO [01-08|15:44:00.657] Loaded most recent local header number=0 hash=fd9284..6543be td=1 age=2y8mo4d
INFO [01-08|15:44:00.657] Loaded most recent local full block number=0 hash=fd9284..6543be td=1 age=2y8mo4d
INFO [01-08|15:44:00.657] Loaded most recent local fast block number=0 hash=fd9284..6543be td=1 age=2y8mo4d
WARN [01-08|15:44:00.658] Loaded snapshot journal diskroot=e73b15..a22683 diffs=missing
WARN [01-08|15:44:00.659] Unclean shutdown detected booted=2022-01-08T15:40:01+0000 age=3m59s
WARN [01-08|15:44:00.659] Unclean shutdown detected booted=2022-01-08T15:40:29+0000 age=3m31s
WARN [01-08|15:44:00.659] Unclean shutdown detected booted=2022-01-08T15:42:28+0000 age=1m32s
INFO [01-08|15:44:00.659] Starting peer-to-peer node instance=bor/v1.0.1-stable-53491784/linux-amd64/go1.15.14
INFO [01-08|15:44:00.679] New local node record seq=4 id=482b3ab172aaeacb ip=127.0.0.1 udp=30303 tcp=30303
INFO [01-08|15:44:00.683] Started P2P networking self=enode://b3ae5c5f83498ea231feaf3b8ca2b96002776370fdb75a51dc635fe8b748430521a9dd5abbfd4a2c09fca15877e2e9af7a531b9f12f6f2799bff3c8d094ead0c@127.0.0.1:30303
INFO [01-08|15:44:00.683] IPC endpoint opened url=/data/bttc/node/bttc/data/bttc.ipc
INFO [01-08|15:44:00.684] HTTP server started endpoint=[::]:8545 prefix= cors=* vhosts=*
INFO [01-08|15:44:00.745] Unlocked account address=0x343c033f27e4d1C917725c754C5c04639264e8d4
INFO [01-08|15:44:00.745] Transaction pool price threshold updated price=300,000,000,000,000
INFO [01-08|15:44:00.745] Transaction pool price threshold updated price=300,000,000,000,000
INFO [01-08|15:44:00.745] Etherbase automatically configured address=0x343c033f27e4d1C917725c754C5c04639264e8d4
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xbeb6fd]

goroutine 56 [running]:
github.com/ethereum/go-ethereum/consensus/bor.(*Snapshot).Difficulty(0xc0003d26e0, 0xc9d1e4273f033c34, 0x63045c4c755c7217, 0xd4e86492, 0xd0e26adc8f8492fd)
github.com/ethereum/go-ethereum/consensus/bor/snapshot.go:210 +0xdd
github.com/ethereum/go-ethereum/consensus/bor.(*Bor).Prepare(0xc000360f00, 0x184a6a0, 0xc0007a2000, 0xc0011d2480, 0xbe436572af590937, 0x8)
github.com/ethereum/go-ethereum/consensus/bor/bor.go:610 +0x17d
github.com/ethereum/go-ethereum/miner.(*worker).commitNewWork(0xc0003dd8c0, 0xc0008d1f00, 0x0, 0x61d9b140)
github.com/ethereum/go-ethereum/miner/worker.go:920 +0x3b5
github.com/ethereum/go-ethereum/miner.(*worker).mainLoop(0xc0003dd8c0)
github.com/ethereum/go-ethereum/miner/worker.go:456 +0xe26
created by github.com/ethereum/go-ethereum/miner.newWorker
github.com/ethereum/go-ethereum/miner/worker.go:228 +0x52e

Loss My BTT In Bridge Transaction! Help!

Hello, Ser!

I have crossed the chain from BTTC network to TRC network, and the chain has been successfully crossed, but there is no cross-chain record displayed on the web page, so I cannot get the cross-chain coins!

Transaction Hash:0x187f5b4e41a817d53ec7fd6f87b10b52adbc056974444b706b6e158a6ddd423c

BTTC address:0xe5c74752f91ec39a7824dc01fe85c2240c08a39b

Please help me!

Best wish!

image

RE: BTT fund sent to incorrect address

Hi, i need help, BTT coin sent to the incorrect address. How do i recover the coin?
Many thanks.

TXID: 449a2b29a9e38ca382898989b996e609415ae3785ab572381e7c3c87c81800bd

[Proposal]Increase network minimum gas fee

Status: Draft

Abstract

In this proposal, we propose that all validators of the BTTC network increase the minimum gas price to ‘9M Gwei’ in order to curb spam transactions and improve the overall health of the network.

Motivation

BTTC has grown significantly over the past several months, growing to almost 6.3m unique addresses interacting on its blockchain since its launch in December 2021.

With a rapid rise in adoption and usage, the network is increasingly susceptible to spam transactions that clog up the network, impacting user experience.

These transactions are clogging the network and real users would find it much more difficult to make genuine transactions, especially if blocks are fully filled with spam.

In an attempt to curb malicious behavior, I suggest increasing the minimum gas price to a proper setting from the current (default) value of 300k Gwei for the whole network.

Rationale

In order to figure out what is the proper minimum gas price settings which can best fit in the current ecosystem status of BTTC and also balance the interest between the validators and the users. We collect and sort out the current gas fees of mainstream Ethereum folk chains in the latest period.

As we know, the gas price is dynamically changing every second according to the Ethereum gas mechanism.

An important reason for the change of gas fee is the user’s intention to include more transactions into the block faster. Sometimes, when the blockchain is busy, the users are willing to pay more gas fee to make their transactions being included in the next block, and the gas fee will rise. Otherwise, when the blockchain is idle, there are not many transactions in the chain, and the gas fee will drop significantly.

There are many metrics that can measure a chain, such as market cap ranking. The following table lists several important parameters of the mainstream Ethereum folk chains, followed by Market Cap Ranking, Average gas price per unit in the last month(in original token), coin price, and Average gas price per unit in the last month(USDT).

note: all the data listed below are fetched in 2022.11.14, and all the data sources are from coinmarketcap.com

Chain Market Cap Ranking Average gas price per unit in last month(in original token) Token price Average gas price per unit in last month(in USDT)
BNB 5 7.5 Gwei $282 0.000002
Polygon 10 422 Gwei $0.94 0.0000004
Avalanche 20 50 Gwei $13.28 0.00000065
Ethereum Classic 24 3.4Gwei $20.14 0.00000007
Fantom 59 1450Gwei $0.1816 0.00000025
Bttc 61 300000Gwei $0.00000068 0.00000000017
Klaytn 68 300Gwei $0.1737 0.00000005
Moonbeam 121 300Gwei $0.36 0.0000001

  gas price(in USDT) = gas price(in original token) * token price.

From the table above, we can find out that: the unit gas price of the different chains has a positive linear relationship with its market cap value as a whole.

Currently, the BTTC chain ranks about 61st.similar to other chains like Klaytn(rank 68) and Fantom(rank 59).

So we suggest increasing the current minimum gas price by 30 times, which means adjust it from the current 300k Gwei to 9M Gwei to match the current market value of BTTC.

If you want to change it, here are the instructions:

Edit ~/node/bttc/start.sh file and add the following flag -

  --miner.gasprice '9000000000000000' \
  --gpo.maxprice '10000000000000000' \

Please note the \ at the end of the line if it’s not the last line of the bttc invocation command.

Note:

BTTC is a decentralized network, so it is completely up to validators to decide whether they will accept this value or configure their nodes to another value.

Min Gas Price is not a network-level setting or upgrade; it is a client-level setting and validators are free to make decision on their own.

Network-level changes or upgrades can only happen when more than ⅔+1 of the validators are agreed and a subsequent acceptance by the community.

Even if all the validators adopt this setting, the gas prices are still rather low ($0.002 - $0.004) for the end users.

If you have any questions about this proposal, please feel free to comment and discuss.

Thank you.

23,437,586,000 BTT Missing in Bridge Transaction

I have been using BTT bridge since its launch for transferring BTT from BTTC network to ERC20 OR BSC.
I tried to transfer 23,437,586,000 BTT from BTTC to the BSC network.
First I swapped my 23,437,586,000 BTT using the swap to convert BTT to BTT_b and then I go to wallet and withdraw BTT_b to BTT BSC network but I can't find the transaction anywhere on the records page and I can't withdraw it to BSC network.

Both the swap and withdraw transaction hashes are below

TRX address - TFfUEhJ339qPbChcjjyj9hksEFZo7pEbfc
BTTC chain address - 0xbceb9733137f6584aee74939de8dd082da3fd94a

Transaction hash 1 - 0xf30f43dc3751423a6a5db2a47540a87539aff5a5b7bfe0210ab06d7169e87719 (BTT to BTT_b)
Transaction hash 2 - 0x7be8656702b32e27f420d95477b1b8b720320423ad533390274b6f828719d2aa (BTT_b to BTT (bsc))

Please help to resolve this issue and get my 23,437,586,000 BTT back.

Please find below the screenshots for the missing transaction on the records page for withdrawal to the BSC network.
The transaction with the above hash is missing while the previous transaction of 25,641,512,000 BTT_b is showing and also the next transaction of 102 BTT_b is also showing.

Screenshot 2022-02-19 at 7 33 53 AM

Screenshot 2022-02-19 at 7 34 10 AM

Screenshot 2022-02-19 at 7 34 41 AM

Screenshot 2022-02-19 at 7 34 47 AM

Screenshot 2022-02-19 at 7 35 00 AM

Node won't start syncing

System information

Geth version: Version: 1.10.13-stable Git Commit: 7a0c19f813e285516f4b525305fd73b625d2dec8 Architecture: amd64 Go Version: go1.17.2
OS & Version: Ubuntu 20.04.3 LTS

Expected behaviour

Node connects to peers and starts syncing

Actual behaviour

Node starts on network id 1 and fails to connect to peers & start syncing

Steps to reproduce the behaviour

git clone https://github.com/bttcprotocol/bttc.git
cd bttc && git checkout v1.0.1
make bttc
cd ~/godata/bin/ && wget https://raw.githubusercontent.com/bttcprotocol/launch/master/mainnet-v1/sentry/validator/bttc/genesis.json
./bttc --datadir ~/.bttc/ init genesis.json
./bttc --datadir ~/.bttc/

Backtrace

[init genesis.json]
INFO [02-12|13:07:01.936] Maximum peer count                       ETH=50 LES=0 total=50
INFO [02-12|13:07:01.936] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [02-12|13:07:01.937] Set global gas cap                       cap=50,000,000
INFO [02-12|13:07:01.937] Allocated cache and file handles         database=/home/ircrp/.bttc/bor/chaindata cache=16.00MiB handles=16
INFO [02-12|13:07:01.984] Writing custom genesis block
INFO [02-12|13:07:01.985] Persisted trie from memory database      nodes=14 size=2.04KiB time="131.4µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B
INFO [02-12|13:07:01.986] Successfully wrote genesis state         database=chaindata                       hash=021eb3..9fcdc1
INFO [02-12|13:07:01.986] Allocated cache and file handles         database=/home/ircrp/.bttc/bor/lightchaindata cache=16.00MiB handles=16
INFO [02-12|13:07:02.027] Writing custom genesis block
INFO [02-12|13:07:02.029] Persisted trie from memory database      nodes=14 size=2.04KiB time="82.8µs"  gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B
INFO [02-12|13:07:02.029] Successfully wrote genesis state         database=lightchaindata                       hash=021eb3..9fcdc1

[start node]
INFO [02-12|13:09:00.596] Starting Geth on Ethereum mainnet...
INFO [02-12|13:09:00.596] Bumping default cache on mainnet         provided=1024 updated=4096
INFO [02-12|13:09:00.602] Maximum peer count                       ETH=50 LES=0 total=50
INFO [02-12|13:09:00.602] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
WARN [02-12|13:09:00.603] Sanitizing cache to Go's GC limits       provided=4096 updated=3992
INFO [02-12|13:09:00.603] Set global gas cap                       cap=50,000,000
INFO [02-12|13:09:00.603] Allocated trie memory caches             clean=598.00MiB dirty=998.00MiB
INFO [02-12|13:09:00.603] Allocated cache and file handles         database=/home/ircrp/.bttc/bor/chaindata cache=1.95GiB handles=2048
INFO [02-12|13:09:00.762] Opened ancient database                  database=/home/ircrp/.bttc/bor/chaindata/ancient readonly=false
INFO [02-12|13:09:00.763] Initialised chain configuration          config="{ChainID: 199 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: 0 EIP155: 0 EIP158: 0 Byzantium: 0 Constantinople: 0 Petersburg: 0 Istanbul: 0, Muir Glacier: 0, Berlin: 0, London: <nil>, Engine: bor}"
INFO [02-12|13:09:00.763] Gasprice oracle is ignoring threshold set threshold=2
INFO [02-12|13:09:00.765] Initialising Ethereum protocol           network=1 dbversion=<nil>
INFO [02-12|13:09:00.766] Loaded most recent local header          number=0 hash=021eb3..9fcdc1 td=1 age=2y9mo1w
INFO [02-12|13:09:00.766] Loaded most recent local full block      number=0 hash=021eb3..9fcdc1 td=1 age=2y9mo1w
INFO [02-12|13:09:00.766] Loaded most recent local fast block      number=0 hash=021eb3..9fcdc1 td=1 age=2y9mo1w
WARN [02-12|13:09:00.766] Failed to load snapshot, regenerating    err="missing or corrupted snapshot"
INFO [02-12|13:09:00.766] Rebuilding state snapshot
INFO [02-12|13:09:00.767] Resuming state snapshot generation       root=49139d..cfc488 accounts=0 slots=0 storage=0.00B elapsed="433.4µs"
INFO [02-12|13:09:00.767] Regenerated local transaction journal    transactions=0 accounts=0
WARN [02-12|13:09:00.767] Error reading unclean shutdown markers   error="leveldb: not found"
WARN [02-12|13:09:00.767] Caller gas above allowance, capping      requested=9,223,372,036,854,775,807 cap=50,000,000
INFO [02-12|13:09:00.768] Starting peer-to-peer node               instance=bor/v1.0.1-stable-53491784/linux-amd64/go1.16.5
INFO [02-12|13:09:00.768] Generated state snapshot                 accounts=10 slots=0 storage=568.00B elapsed=1.376ms
INFO [02-12|13:09:00.769] invoking updateTotalVotingPower before returning it
INFO [02-12|13:09:00.770] Stored checkpoint snapshot to disk       number=0 hash=021eb3..9fcdc1
INFO [02-12|13:09:00.827] New local node record                    seq=1 id=7bd6746f97e72189 ip=127.0.0.1 udp=30303 tcp=30303
INFO [02-12|13:09:00.829] Started P2P networking                   self=enode://edbe1a27e7be33c490d229c835df329e447feda884ff6a914991431f4337c256567bb2bca33eca945dd56ecf31e6e67cfbef9f2e538e5103eca5206250e039ae@127.0.0.1:30303
INFO [02-12|13:09:00.829] IPC endpoint opened                      url=/home/ircrp/.bttc/bor.ipc
INFO [02-12|13:09:03.960] New local node record                    seq=2 id=7bd6746f97e72189 ip=<retraced> udp=63911 tcp=30303
INFO [02-12|13:09:10.828] Looking for peers                        peercount=0 tried=30 static=0
INFO [02-12|13:09:20.832] Looking for peers                        peercount=0 tried=28 static=0
INFO [02-12|13:09:30.833] Looking for peers                        peercount=0 tried=30 static=0
INFO [02-12|13:09:40.966] Looking for peers                        peercount=1 tried=32 static=0
INFO [02-12|13:09:51.164] Looking for peers                        peercount=0 tried=31 static=0
INFO [02-12|13:10:01.834] Looking for peers                        peercount=0 tried=27 static=0
INFO [02-12|13:10:12.167] Looking for peers                        peercount=0 tried=31 static=0
INFO [02-12|13:10:22.195] Looking for peers                        peercount=0 tried=24 static=0
INFO [02-12|13:10:32.833] Looking for peers                        peercount=0 tried=23 static=0
INFO [02-12|13:10:43.221] Looking for peers                        peercount=0 tried=46 static=0
INFO [02-12|13:10:53.322] Looking for peers                        peercount=0 tried=31 static=0
INFO [02-12|13:11:03.340] Looking for peers                        peercount=0 tried=29 static=0
INFO [02-12|13:11:13.498] Looking for peers                        peercount=0 tried=36 static=0
INFO [02-12|13:11:23.688] Looking for peers                        peercount=0 tried=37 static=0
INFO [02-12|13:11:33.718] Looking for peers                        peercount=0 tried=31 static=0
INFO [02-12|13:11:43.833] Looking for peers                        peercount=0 tried=33 static=0
ERROR[02-12|13:11:50.923] Snapshot extension registration failed   peer=04dfa983 err="peer connected on snap without compatible eth support"
INFO [02-12|13:11:53.877] Looking for peers                        peercount=0 tried=36 static=0
INFO [02-12|13:12:03.955] Looking for peers                        peercount=0 tried=34 static=0
INFO [02-12|13:12:14.062] Looking for peers                        peercount=0 tried=42 static=0
INFO [02-12|13:12:24.164] Looking for peers                        peercount=0 tried=36 static=0
INFO [02-12|13:12:34.187] Looking for peers                        peercount=0 tried=28 static=0
INFO [02-12|13:12:44.194] Looking for peers                        peercount=0 tried=47 static=0
INFO [02-12|13:12:54.279] Looking for peers                        peercount=0 tried=38 static=0
INFO [02-12|13:13:04.499] Looking for peers                        peercount=0 tried=27 static=0

When submitting logs: please submit them as text and not screenshots.

Error when install bttc-cli

Can't install if doesn't setup a GitHub account with ssh key, i do have GitHub account, but doesn't make sense copy my private key to the server which deploy BTTC node.

Ubuntu 20.04
npm install -g @bttcnetwork/bttc-cli
npm notice
npm notice New minor version of npm available! 8.1.2 -> 8.3.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.3.0
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/atvanguard/moonwalker.git
npm ERR! Warning: Permanently added 'github.com,140.82.112.3' (ECDSA) to the list of known hosts.
npm ERR! [email protected]: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-01-08T09_50_31_873Z-debug.log

Btt_e record transfer bug

Hash.
0xf823c8b910a19e8af5c88764810d2aba4c52641f4fa56670434b8308d90cc3e3

My cross chain btt-e transaction record cannot be displayed.

IMG_20220225_004656

Wallet: 0x3bed80c0974c4ef82b5286d696b480af761c019e

No peers

Hello, please provide additional peers.
My node is unable to connect the network for a month.
Thanks!

Test network - the bttc cannot be synchronized when deploying the validator node

I refer to the following documents to deploy a validator node of the test network

https://doc.bt.io/docs/validator/build-validator-node

When configuring the Sentry Nodes, Delivery and bttc are already configured. However, after the bttc node is started, other peers cannot be added. The following errors appear in the log

image

Is there a problem with my configuration?

----Additional information----

Execute query command curl localhost:26657/status

{
  "jsonrpc": "2.0",
  "id": "",
  "result": {
    "node_info": {
      "protocol_version": {
        "p2p": "7",
        "block": "10",
        "app": "0"
      },
      "id": "1dc05d2a65b6c322ebf231375516c9d6b5079920",
      "listen_addr": "tcp://0.0.0.0:26656",
      "network": "delivery-1029",
      "version": "0.32.7",
      "channels": "4020212223303800",
      "moniker": "xxxx-test-5",
      "other": {
        "tx_index": "on",
        "rpc_address": "tcp://127.0.0.1:26657"
      }
    },
    "sync_info": {
      "latest_block_hash": "67601D512F749F0DB5DEAA63543AE53C921155A8922CDE38E0730E725C3B2710",
      "latest_app_hash": "1E6F134FF6070D15432FACCCB3E2985F4F0F6512078F9D13C0FBE29272E99F00",
      "latest_block_height": "9718",
      "latest_block_time": "2022-11-03T01:41:59.320785278Z",
      "catching_up": false
    },
    "validator_info": {
      "address": "0F46542A32FAC85D75312A43C3D64C5E0B7519A5",
      "pub_key": {
        "type": "tendermint/PubKeySecp256k1",
        "value": "BIZF+OhMN79nmJKRFB9tX3rCrLKlCMKqWu+arvi1Sw7gc5eneQHxx5i7wkvSmcXU78YgCBZNUX/a54vBiT7ovxo="
      },
      "voting_power": "1"
    }
  }
}

Through the bttc test network block browser, the current latest height is 14035391, but the synchronization status of Delivery is catching_ Up is false,

"latest_block_height": "9718",
"latest_block_time": "2022-11-03T01:41:59.320785278Z",
"catching_up": false

Is this information correct?

Error when running bttc-cli setup devnet

System information

Geth version: geth version
OS & Version: Debian GNU/Linux 10
Commit hash : (if develop)

Expected behaviour

The node directory be generated

Actual behaviour

It fails in "Generate genesis.json" step

Steps to reproduce the behaviour

Dependencies installed:
Git v2.30.1
g++ 8.3.0
Go 1.16.12
Nodejs v11.0.0
Rabbitmq-server started
Solc v0.8.10

git clone https://github.com/bttcprotocol/delivery.git
cd delivery
make install

git clone https://github.com/bttcprotocol/bttc
cd bttc
make bttc

npm install -g @bttcnetwork/bttc-cli

bttc-cli setup devnet

(fill the fields)

Backtrace

✖ Generate genesis.json
      → Bttc validator set file updated.
    Setup Bttc keystore and genesis files
    Remote
(node:28355) UnhandledPromiseRejectionWarning: Error: Command failed: node generate-genesis.js --bttc-chain-id 1029 --delivery-chain-id delivery-1029
events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: spawn solc ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
    at onErrorNT (internal/child_process.js:407:16)
    at internalTickCallback (internal/process/next_tick.js:72:19)
    at process._tickCallback (internal/process/next_tick.js:47:5)
    at Function.Module.runMain (internal/modules/cjs/loader.js:763:11)
    at startup (internal/bootstrap/node.js:303:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:872:3)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
    at onErrorNT (internal/child_process.js:407:16)
    [... lines matching original stack trace ...]
    at bootstrapNodeJSCore (internal/bootstrap/node.js:872:3)

Bttc validator set file updated.

    at makeError (/home/leonardo/.nvm/versions/node/v11.0.0/lib/node_modules/@bttcnetwork/bttc-cli/node_modules/execa/index.js:174:9)
    at Promise.all.then.arr (/home/leonardo/.nvm/versions/node/v11.0.0/lib/node_modules/@bttcnetwork/bttc-cli/node_modules/execa/index.js:278:16)
    at process.internalTickCallback (internal/process/next_tick.js:77:7)
(node:28355) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:28355) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

When submitting logs: please submit them as text and not screenshots.

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.