fbc

module
v0.0.0-...-c763619 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2023 License: Apache-2.0

README

FBC

Build docker
docker build -t fullnode-mainnet:v1.6.8.6 .

docker tag {imageId} {registryUrl}/fbc/fullnode:v1.6.8.6

docker push {registryUrl}/fbc/fullnode:v1.6.8.6

/dev/docker

sudo docker-compose up -d 

Join Fibonacci Mainnet
genesis file

build/genesis.json

or url:

https://fibochain.s3-ap-east-1.amazonaws.com/0/yd6uOpEDQ3rhlrz1e74CN2agP_genesis.json


public node

1.persistent_peers node:
757fe84d81e1d09fb24c76265a02f36b76c2bc5b@16.162.64.131:26656
c176d3003ca8b6f66cebfd2df091a3a5c5c37113@16.163.133.239:26656
9bffbd7b5b22dc2e05cc191ad964949bbcee6751@43.198.116.254:26656

2.seed node:
5e05489a5ff1d61c8931ee2b7b35ef2a2ddb6e0f@43.198.41.15:26656,8eac34c53d16279fb2b7cfc7f7c99b8e4cfac876@18.167.177.52:26656
run a node quickly without snapshot
make mainnet WITH_ROCKSDB=true

fbchaind init adfi-node --chain-id fbc-1230 

wget https://fibochain.s3-ap-east-1.amazonaws.com/0/yd6uOpEDQ3rhlrz1e74CN2agP_genesis.json & mv yd6uOpEDQ3rhlrz1e74CN2agP_genesis.json ~/.fbchaind/config/genesis.json 

fbchaind start \
    --chain-id fbc-1230 \
    --unsafe-cors=true \
    --rest.laddr tcp://0.0.0.0:8545 \
    --log_level main:info,iavl:info,*:error,tx-receiver:info \
    --node-mode val \
    --fast-query=true \
    --minimum-gas-prices 0.0000001fibo \
    --p2p.seeds=5e05489a5ff1d61c8931ee2b7b35ef2a2ddb6e0f@43.198.41.15:26656,8eac34c53d16279fb2b7cfc7f7c99b8e4cfac876@18.167.177.52:26656 \
    --p2p.addr_book_strict=false \
    --db_backend rocksdb 
    
run a node quickly with snapshot
make mainnet WITH_ROCKSDB=true

fbchaind init adfi-node --chain-id fbc-1230 

wget https://fibochain.s3-ap-east-1.amazonaws.com/0/yd6uOpEDQ3rhlrz1e74CN2agP_genesis.json & mv yd6uOpEDQ3rhlrz1e74CN2agP_genesis.json ~/.fbchaind/config/genesis.json 

fbchaind unsafe-reset-all

wget https://mirrorcnamdin.oss-cn-hangzhou.aliyuncs.com/fbchain/data/2023-08-01_rocketdb_snapshot.tar.gz

mv 2023-08-01_rocketdb_snapshot.tar.gz ~/.fbchaind/data/

cd ~/.fbchaind/data/

tar -zxvf 2023-08-01_rocketdb_snapshot.tar.gz

fbchaind start \
    --chain-id fbc-1230 \
    --unsafe-cors=true \
    --rest.laddr tcp://0.0.0.0:8545 \
    --log_level main:info,iavl:info,*:error,tx-receiver:info \
    --node-mode val \
    --fast-query=true \
    --minimum-gas-prices 0.0000001fibo \
    --p2p.seeds=5e05489a5ff1d61c8931ee2b7b35ef2a2ddb6e0f@43.198.41.15:26656,8eac34c53d16279fb2b7cfc7f7c99b8e4cfac876@18.167.177.52:26656 \
    --p2p.addr_book_strict=false \
    --db_backend rocksdb 
    
run a node env options

fbchaind start \
    --chain-id fbc-1230 \
    --unsafe-cors=${FBC_UNSAFE_CORS:-"false"} \
    --rest.laddr tcp://0.0.0.0:8545 \
    --log_level ${FBC_LOG_LEVEL} \
    --node-mode ${FBC_NODE_MODE} \
    --fast-query=${FBC_FAST_QUERY} \
    --debug-api=${FBC_DEBUG_API} \
    --minimum-gas-prices ${FBC_MIN_GAS_PRICE} \
    --p2p.persistent_peers=${FBC_PERSISTENT_PEERS} \
    --p2p.addr_book_strict=${FBC_ADDR_BOOK_STRICT} \
    --iavl-enable-async-commit=${FBC_IAVL_ENABLE_ASYNC_COMMIT:-"true"} \
    --iavl-cache-size=${FBC_IAVL_CACHE_SIZE:-10000000} \
    --iavl-fast-storage-cache-size=${FBC_IAVL_FAST_STORAGE_CACHE_SIZE:-10000000} \
    --rocksdb.opts=${FBC_ROCKSDB_OPTS:-""} \
    --db_backend ${FBC_DB_BACKEND} 

============================Run Validator/RPC ENV==================================

      - FBC_LOG_FILE=/root/logs/fbchaind.log
      - FBC_LOG_STDOUT=false
      - FBC_DB_BACKEND=goleveldb
      - FBC_ELAPSED=DeliverTxs=2,Round=1,CommitRound=1,Produce=1
      - FBC_LOG_LEVEL=main:info,iavl:info,*:error,tx-receiver:info
      - FBC_NODE_MODE=val #archive, val, rpc
      - FBC_FAST_QUERY=true
      - FBC_DEBUG_API=false
      - FBC_MIN_GAS_PRICE=0.0000001fibo
      - FBC_ADDR_BOOK_STRICT=false
      - FBC_UNSAFE_CORS=true
      
============================Run ARCHIVE ENV========================================

      - FBC_LOG_FILE=/root/logs/fbchaind.log
      - FBC_LOG_STDOUT=false
      - FBC_DB_BACKEND=rocksdb
      - FBC_ELAPSED=DeliverTxs=2,Round=1,CommitRound=1,Produce=1
      - FBC_LOG_LEVEL=main:info,iavl:info,*:error,tx-receiver:info
      - FBC_NODE_MODE=archive #archive, val, rpc
      - FBC_FAST_QUERY=false
      - FBC_DEBUG_API=false
      - FBC_MIN_GAS_PRICE=0.0000001fibo
      - FBC_ADDR_BOOK_STRICT=false
      - FBC_IAVL_ENABLE_ASYNC_COMMIT=false
      - FBC_ROCKSDB_OPTS=max_open_files=20000
      - FBC_IAVL_CACHE_SIZE=5000000
      - FBC_IAVL_FAST_STORAGE_CACHE_SIZE=5000000

Directories

Path Synopsis
app
rpc
Package rpc contains RPC handler methods, namespaces and utilities to start Ethermint's Web3-compatible JSON-RPC server.
Package rpc contains RPC handler methods, namespaces and utilities to start Ethermint's Web3-compatible JSON-RPC server.
cmd
dev
tx
client Module
libs
cosmos-sdk/client/grpc/reflection
Package reflection is a reverse proxy.
Package reflection is a reverse proxy.
cosmos-sdk/client/lcd/statik
Package statik contains static assets.
Package statik contains static assets.
cosmos-sdk/codec/types
Package types defines a custom wrapper for google.protobuf.Any which supports cached values as well as InterfaceRegistry which keeps track of types which can be used with Any for both security and introspection
Package types defines a custom wrapper for google.protobuf.Any which supports cached values as well as InterfaceRegistry which keeps track of types which can be used with Any for both security and introspection
cosmos-sdk/crypto/keys/hd
Package hd provides basic functionality Hierarchical Deterministic Wallets.
Package hd provides basic functionality Hierarchical Deterministic Wallets.
cosmos-sdk/server/grpc/gogoreflection
Package gogoreflection implements gRPC reflection for gogoproto consumers the normal reflection library does not work as it points to a different singleton registry.
Package gogoreflection implements gRPC reflection for gogoproto consumers the normal reflection library does not work as it points to a different singleton registry.
cosmos-sdk/server/grpc/reflection/v2alpha1
Package v2alpha1 is a reverse proxy.
Package v2alpha1 is a reverse proxy.
nolint
cosmos-sdk/simapp/params
Package params defines the simulation parameters in the simapp.
Package params defines the simulation parameters in the simapp.
cosmos-sdk/store/types
// Code generated by protoc-gen-gogo.
// Code generated by protoc-gen-gogo.
cosmos-sdk/tests/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
cosmos-sdk/types/errors
Package errors implements custom error interfaces for cosmos-sdk.
Package errors implements custom error interfaces for cosmos-sdk.
cosmos-sdk/types/module
Package module contains application module patterns and associated "manager" functionality.
Package module contains application module patterns and associated "manager" functionality.
cosmos-sdk/types/rest
Package rest provides HTTP types and primitives for REST requests validation and responses handling.
Package rest provides HTTP types and primitives for REST requests validation and responses handling.
cosmos-sdk/types/tx
Package tx is a reverse proxy.
Package tx is a reverse proxy.
cosmos-sdk/version
Package version is a convenience utility that provides SDK consumers with a ready-to-use version command that produces apps versioning information based on flags passed at compile time.
Package version is a convenience utility that provides SDK consumers with a ready-to-use version command that produces apps versioning information based on flags passed at compile time.
cosmos-sdk/x/auth
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/cosmos/cosmos-sdk/x/auth/ante ALIASGEN: github.com/cosmos/cosmos-sdk/x/auth/keeper ALIASGEN: github.com/cosmos/cosmos-sdk/x/auth/types
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/cosmos/cosmos-sdk/x/auth/ante ALIASGEN: github.com/cosmos/cosmos-sdk/x/auth/keeper ALIASGEN: github.com/cosmos/cosmos-sdk/x/auth/types
DONTCOVER nolint
DONTCOVER nolint
cosmos-sdk/x/auth/types
Package types is a reverse proxy.
Package types is a reverse proxy.
cosmos-sdk/x/auth/vesting
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/cosmos/cosmos-sdk/x/auth/vesting/types/
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/cosmos/cosmos-sdk/x/auth/vesting/types/
nolint noalias
cosmos-sdk/x/bank/internal/typesadapter
Package types is a reverse proxy.
Package types is a reverse proxy.
nolint
cosmos-sdk/x/distribution
Package distribution implements a Cosmos SDK module, that provides an implementation of the F1 fee distribution algorithm.
Package distribution implements a Cosmos SDK module, that provides an implementation of the F1 fee distribution algorithm.
nolint
DONTCOVER nolint
DONTCOVER nolint
nolint
cosmos-sdk/x/evidence
Package evidence implements a Cosmos SDK module, per ADR 009, that allows for the submission and handling of arbitrary evidence of misbehavior.
Package evidence implements a Cosmos SDK module, per ADR 009, that allows for the submission and handling of arbitrary evidence of misbehavior.
DONTCOVER
cosmos-sdk/x/genaccounts
Package genaccounts is now deprecated.
Package genaccounts is now deprecated.
DONTCOVER nolint
DONTCOVER nolint
cosmos-sdk/x/genutil
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/cosmos/cosmos-sdk/x/genutil/types
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/cosmos/cosmos-sdk/x/genutil/types
cosmos-sdk/x/gov
nolint DONTCOVER
nolint DONTCOVER
nolint
DONTCOVER nolint
DONTCOVER nolint
cosmos-sdk/x/mock
Package mock provides utility methods to ease writing tests.
Package mock provides utility methods to ease writing tests.
cosmos-sdk/x/params
Package params provides a namespaced module parameter store.
Package params provides a namespaced module parameter store.
cosmos-sdk/x/params/subspace
To prevent namespace collision between consumer modules, we define a type Subspace.
To prevent namespace collision between consumer modules, we define a type Subspace.
cosmos-sdk/x/simulation
Package simulation implements a full fledged Cosmos SDK application used for executing simulation test suites.
Package simulation implements a full fledged Cosmos SDK application used for executing simulation test suites.
nolint
noalias
DONTCOVER nolint
DONTCOVER nolint
DONTCOVER nolint
cosmos-sdk/x/supply
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/cosmos/cosmos-sdk/x/supply/internal/keeper ALIASGEN: github.com/cosmos/cosmos-sdk/x/supply/internal/types
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/cosmos/cosmos-sdk/x/supply/internal/keeper ALIASGEN: github.com/cosmos/cosmos-sdk/x/supply/internal/types
DONTCOVER nolint
cosmos-sdk/x/upgrade
Package upgrade provides a Cosmos SDK module that can be used for smoothly upgrading a live Cosmos chain to a new software version.
Package upgrade provides a Cosmos SDK module that can be used for smoothly upgrading a live Cosmos chain to a new software version.
iavl
Package iavl implements a versioned, snapshottable (immutable) AVL+ tree for persisting key-value pairs.
Package iavl implements a versioned, snapshottable (immutable) AVL+ tree for persisting key-value pairs.
iavl/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package types is a reverse proxy.
ibc-go/modules/apps/27-interchain-accounts/host/types
Package types is a reverse proxy.
Package types is a reverse proxy.
ibc-go/modules/apps/29-fee/types
Package types is a reverse proxy.
Package types is a reverse proxy.
ibc-go/modules/apps/transfer/types
Package types is a reverse proxy.
Package types is a reverse proxy.
ibc-go/modules/core/02-client/types
Package types is a reverse proxy.
Package types is a reverse proxy.
ibc-go/modules/core/03-connection/types
Package types is a reverse proxy.
Package types is a reverse proxy.
ibc-go/modules/core/04-channel/types
Package types is a reverse proxy.
Package types is a reverse proxy.
ibc-go/modules/core/types
Package types is a reverse proxy.
Package types is a reverse proxy.
ibc-go/modules/light-clients/06-solomachine
Package solomachine implements a concrete `ConsensusState`, `Header`, `Misbehaviour` and `Equivocation` types for the Solo Machine light client.
Package solomachine implements a concrete `ConsensusState`, `Header`, `Misbehaviour` and `Equivocation` types for the Solo Machine light client.
ibc-go/modules/light-clients/09-localhost
Package localhost implements a concrete `ConsensusState`, `Header`, `Misbehaviour` and `Equivocation` types for the loop-back client.
Package localhost implements a concrete `ConsensusState`, `Header`, `Misbehaviour` and `Equivocation` types for the loop-back client.
ibc-go/testing
This file contains the variables, constants, and default values used in the testing package and commonly defined in tests.
This file contains the variables, constants, and default values used in the testing package and commonly defined in tests.
tendermint/crypto/merkle
Package merkle computes a deterministic minimal height Merkle tree hash.
Package merkle computes a deterministic minimal height Merkle tree hash.
nolint:gocritic
tendermint/crypto/xchacha20poly1305
Package xchacha20poly1305 creates an AEAD using hchacha, chacha, and poly1305 This allows for randomized nonces to be used in conjunction with chacha.
Package xchacha20poly1305 creates an AEAD using hchacha, chacha, and poly1305 This allows for randomized nonces to be used in conjunction with chacha.
tendermint/libs/events
Package events - Pub-Sub in go with event caching
Package events - Pub-Sub in go with event caching
tendermint/libs/flowrate
Package flowrate provides the tools for monitoring and limiting the flow rate of an arbitrary data stream.
Package flowrate provides the tools for monitoring and limiting the flow rate of an arbitrary data stream.
tendermint/libs/kv
nolint: dupl dupl is reading this as the same file as crypto/merkle/result.go
nolint: dupl dupl is reading this as the same file as crypto/merkle/result.go
tendermint/libs/pubsub
Package pubsub implements a pub-sub model with a single publisher (Server) and multiple subscribers (clients).
Package pubsub implements a pub-sub model with a single publisher (Server) and multiple subscribers (clients).
nolint
tendermint/lite
Package lite is deprecated and will be removed in v0.34!
Package lite is deprecated and will be removed in v0.34!
tendermint/lite/client
Package client defines a provider that uses a rpchttp to get information, which is used to get new headers and validators directly from a Tendermint client.
Package client defines a provider that uses a rpchttp to get information, which is used to get new headers and validators directly from a Tendermint client.
tendermint/lite2
Package lite provides a light client implementation.
Package lite provides a light client implementation.
tendermint/mempool
TODO: Better handle abci client errors.
TODO: Better handle abci client errors.
tendermint/node
Package node is the main entry point, where the Node struct, which represents a full node, is defined.
Package node is the main entry point, where the Node struct, which represents a full node, is defined.
tendermint/p2p/upnp
Taken from taipei-torrent.
Taken from taipei-torrent.
tendermint/privval
Package privval provides different implementations of the types.PrivValidator.
Package privval provides different implementations of the types.PrivValidator.
tendermint/rpc/jsonrpc
HTTP RPC server supporting calls via uri params, jsonrpc over HTTP, and jsonrpc over websockets
HTTP RPC server supporting calls via uri params, jsonrpc over HTTP, and jsonrpc over websockets
tendermint/rpc/jsonrpc/server
Commons for HTTP handling
Commons for HTTP handling
tm-db/remotedb
remotedb is a package for connecting to distributed Tendermint db.DB instances.
remotedb is a package for connecting to distributed Tendermint db.DB instances.
tm-db/remotedb/grpcdb
grpcdb is the distribution of Tendermint's db.DB instances using the gRPC transport to decouple local db.DB usages from applications, to using them over a network in a highly performant manner.
grpcdb is the distribution of Tendermint's db.DB instances using the gRPC transport to decouple local db.DB usages from applications, to using them over a network in a highly performant manner.
x
dex
nolint aliases generated for the following subdirectories: ALIASGEN: github.com/fibonacci-chain/fbc/x/dex/keeper ALIASGEN: github.com/fibonacci-chain/fbc/x/dex/types
nolint aliases generated for the following subdirectories: ALIASGEN: github.com/fibonacci-chain/fbc/x/dex/keeper ALIASGEN: github.com/fibonacci-chain/fbc/x/dex/types
distribution
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/fibonacci-chain/fbc/x/distribution/keeper ALIASGEN: github.com/fibonacci-chain/fbc/x/distribution/types ALIASGEN: github.com/fibonacci-chain/fbc/x/distribution/client
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/fibonacci-chain/fbc/x/distribution/keeper ALIASGEN: github.com/fibonacci-chain/fbc/x/distribution/types ALIASGEN: github.com/fibonacci-chain/fbc/x/distribution/client
nolint
nolint
evidence
Package evidence implements a Cosmos SDK module, per ADR 009, that allows for the submission and handling of arbitrary evidence of misbehavior.
Package evidence implements a Cosmos SDK module, per ADR 009, that allows for the submission and handling of arbitrary evidence of misbehavior.
DONTCOVER
evm
gov
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories:
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories:
gov/types
nolint
nolint
icamauth/types
Package types is a reverse proxy.
Package types is a reverse proxy.
order/client/rest
Package rest API.
Package rest API.
nolint
noalias
staking
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/fibonacci-chain/fbc/x/staking/keeper ALIASGEN: github.com/fibonacci-chain/fbc/x/staking/types ALIASGEN: github.com/fibonacci-chain/fbc/x/staking/exported
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/fibonacci-chain/fbc/x/staking/keeper ALIASGEN: github.com/fibonacci-chain/fbc/x/staking/types ALIASGEN: github.com/fibonacci-chain/fbc/x/staking/exported
staking/types
nolint
nolint
staking/typesadapter
Package types is a reverse proxy.
Package types is a reverse proxy.
token/client/rest
Package rest API.
Package rest API.
token/types
nolint
nolint
wasm
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/fibonacci-chain/fbc/x/wasm/types ALIASGEN: github.com/fibonacci-chain/fbc/x/wasm/keeper
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/fibonacci-chain/fbc/x/wasm/types ALIASGEN: github.com/fibonacci-chain/fbc/x/wasm/keeper
wasm/types
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL