Coder Social home page Coder Social logo

bifrost-finance / bifrost Goto Github PK

View Code? Open in Web Editor NEW
342.0 15.0 77.0 80.42 MB

One Stake, Endless Opportunities. Build with Polkadot SDK (Substrate).

Home Page: https://bifrost.io

License: GNU General Public License v3.0

Rust 99.56% Shell 0.08% Dockerfile 0.04% Makefile 0.14% JavaScript 0.03% Handlebars 0.16%
substrate bifrost polkadot appchain liquidstaking omnichain

bifrost's Introduction

Bifrost Banner

Bifrost Logo

Welcome,

Bifrost is a Web3 derivatives protocol that provides decentralized cross-chain liquidity for staked assets. By leveraging on the cross-consensus message (XCM) it can provide cross-chain liquid staking services for multiple chains.

Our mission is to provide standardized cross-chain interest-bearing derivatives for Polkadot relay chains, parachains, and heterogeneous chains bridged with Polkadot.

👉 Discover the Bifrost at bifrost.io.
👉 Learn to use the Bifrost with our docs.

🐣 Supported by

Web3 Foundation Grants Substrate Builders Program Web3 Bootcamp

master-build Codacy Badge Substrate Version License Dapp Analytics Discord Twitter

Get Build Help

make help

Install Rust and required tools

curl https://sh.rustup.rs -sSf | sh
make init

Build binary

make build-all-release

Format code

make format

Lint code

make clippy

Testing

make test-all

Generate runtime weights

if runtime logic change we may do the benchmarking to regenerate WeightInfo for dispatch calls

make generate-all-weights

Testing runtime migration

If modify the storage, should test the data migration before production upgrade.

# bifrost kusama
make try-kusama-runtime-upgrade

# bifrost polkadot
make try-polkadot-runtime-upgrade

Run development chain

run node with --chain=bifrost-polkadot-dev to enable development mode.

Before use dev mode, modify OnTimestampSet to be ()

impl pallet_timestamp::Config for Runtime {
	type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>;
	/// A timestamp: milliseconds since the unix epoch.
	type Moment = Moment;
   -type OnTimestampSet = Aura;
   +type OnTimestampSet = ();
	type WeightInfo = pallet_timestamp::weights::SubstrateWeight<Runtime>;
}

Run local testnet with polkadot-launch

Install polkadot-launch

yarn global add polkadot-launch
cd -

Build polkadot

# replace version with your target polkadot version
cargo install --git https://github.com/paritytech/polkadot --tag <version> polkadot --locked

Launch Polkadot and the parachain

cd -
polkadot-launch ./scripts/bifrost-launch.json

It will take about 1-2 minutes for the parachain to start producing blocks.

Run local testnet with parachain-launch

Install parachain-launch

yarn global add @open-web3/parachain-launch

Generate docker files

parachain-launch generate --config=scripts/bifrost-docker-launch.yml --yes

It will pull images and generate required docker files in a folder called output in your current working directory

Start relaychain and parachain

To start the nodes, navigate to the output folder that the generated docker scripts in and start containers:

cd ./output
docker-compose up -d --build

Run full node

Create bifrost-fullnode directory, generate node-key and get bifrost.json

mkdir -p ~/node-key
subkey generate-node-key --file ~/node-key/bifrost.key

Start full node

Replace your-fullnode-name

docker pull bifrostnetwork/bifrost:latest
docker run -d \
-v ~/node-key:/node-key \
-p 9944:9944 \
-p 9933:9933 \
-p 30333:30333 \
bifrostnetwork/bifrost:latest \
  --name your-fullnode-name \
  --base-path "/data" \
  --node-key-file "/node-key/bifrost.key" \
  --chain "/spec/bifrost.json" \
  --pruning=archive \
  --rpc-external \
  --ws-external \
  --rpc-cors all \
  --trie-cache-size 0 \
  --execution wasm

snapshot

There are also some snapshots you can use to quickly get started, these are provided by the community.

  • Pre-req .

    zstd and aria2

    sudo apt install zstd
    sudo apt install aria2

bifrost-kusama snapshots

  • relay-chain data
# download dict
wget https://snapshot-1258776962.cos.ap-hongkong.myqcloud.com/bifrost-kusama/relay.dict

# download zst data
aria2c -x10 https://snapshot-1258776962.cos.ap-hongkong.myqcloud.com/bifrost-kusama/relay.tar.zst

# decompress: node is basepath, you can replace any dicrectory you like
mkdir node
tar -I 'zstd -vd -T0 -D relay.dict' -xvf relay.tar.zst -C node/.
  • parachain data
wget https://snapshot-1258776962.cos.ap-hongkong.myqcloud.com/bifrost-kusama/para.dict
aria2c -x10  https://snapshot-1258776962.cos.ap-hongkong.myqcloud.com/bifrost-kusama/para.tar.zst

tar -I 'zstd -vd -T0 -D para.dict' -xvf para.tar.zst -C node/.

bifrost-polkadot snapshots

link:

bifrost's People

Contributors

0xyancy avatar akagi201 avatar alistair-singh avatar allenpocketgamer avatar ark930 avatar arrudagates avatar chw683 avatar codacy-badger avatar dengjianping avatar dependabot[bot] avatar herryho avatar hqwangningbo avatar hsqlu avatar jerrybaoo avatar joethechicken avatar lurpis avatar mjlnsn avatar omahs avatar r-y-m-r avatar rustninja avatar suntiebing avatar tomatoares avatar wodlj1314 avatar yooml avatar yrong 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

bifrost's Issues

cannot create module: compilation settings are not compatible with the native host

Im trying to update my node (bifrost kusama) from 0.9.48 to any higher vesrion but after restart my service, got an error. I have update my node multiple times without any problems, but now I dont have any idea whats is wrong, that I cant update my node (im using binary)
Aug 03 15:36:06 bifrost metabase[734015]: 2022-08-03 15:36:06 [Parachain🌈] Essential task txpool-background failed. Shutting down service. Aug 03 15:36:06 bifrost metabase[734015]: 2022-08-03 15:36:06 [Parachain🌈] Essential task transaction-pool-task-1 failed. Shutting down service. Aug 03 15:36:06 bifrost metabase[734015]: 2022-08-03 15:36:06 [Parachain🌈] Essential task transaction-pool-task-0 failed. Shutting down service. Aug 03 15:36:06 bifrost metabase[734015]: Error: Service(Client(RuntimeApiError(Application(VersionInvalid("cannot create module: compilation settings are not compatible with the native host"))))) Aug 03 15:36:06 bifrost systemd[1]: bifrost.service: Main process exited, code=exited, status=1/FAILURE Aug 03 15:36:06 bifrost systemd[1]: bifrost.service: Failed with result 'exit-code'. Aug 03 15:36:06 bifrost systemd[1]: bifrost.service: Scheduled restart job, restart counter is at 8.

Memory leak

Ubuntu: 20.04 LTS
8 cores
30 GB RAM
bifrost 0.9.44-7af39eb

After upgrade to bifrost 0.9.44-7af39eb memory usage increases a lot! (the memory issue also happened after upgrade to robonomics 2.0.0-17b47a4bd7c)

image

image

Don't know if it's related but also getting these messages:

Labels
alertname = UnboundedChannelPersistentlyLarge
chain = bifrost
entity = mpsc_finality_notification_stream
instance = localhost:19635
job = bifrost-kusama-cmn12
monitor = CMN12
severity = warning
Annotations
message = Channel mpsc_finality_notification_stream on node localhost:19635 contains more than 200 items for more than 5 minutes. Node might be frozen.

Collator stopped producing blocks

Collator: bifrost 0.9.43-b767dc6-x86_64-linux-gnu
Ubuntu 20.04 LTS
VPS 8 core, RAM 30GB, 400 GB NVMe disk

Jun 03 09:22:48 mn12 bifrost[2386398]: 2022-06-03 09:22:48 [Parachain🌈] Starting collation. relay_parent=0xba63063d76632501e224647ea6f1b3ba1883dd9c25c3620b853522984a921506 at=0xc16516512a5ecb64c27afe2c4e9dd49348bdce75dcddb8fab5eac7a53fb738fb
Jun 03 09:22:48 mn12 bifrost[2386398]: 2022-06-03 09:22:48 [Parachain🌈] ✨ Imported #1849598 (0xc070…757b)
Jun 03 09:22:49 mn12 bifrost[2386398]: 2022-06-03 09:22:49 [Relaychain] 💤 Idle (46 peers), best: #12964450 (0xba63…1506), finalized #12964445 (0xc612…82b1), ⬇ 139.2kiB/s ⬆ 269.7kiB/s
**Jun 03 09:22:51 mn12 bifrost[2386398]: 2022-06-03 09:22:51 [Relaychain] Locating closest peers for replication failed: Err(Timeout { key: Key(b"\x97\x92.2a\xa3*E\x17h3\xc8\xed\xb7\xf0e\"\xffS\xb5\xffj\xa8\x8e\xf7\xd0)\x0c\x94\xbfB\xe8"), success: [], quorum: 20 })
Jun 03 09:22:51 mn12 bifrost[2386398]: 2022-06-03 09:22:51 [Relaychain] Locating closest peers for replication failed: Err(Timeout { key: Key(b"\xdcD\xe1\x8c\xcb7\x08\xd0\x85\xe6U\xcfY\xbe\xb2\x11\xb9[+\xa4\xd0u}\xfa\xff\x98C)\xf5|W\xb9"), success: [], quorum: 20 })**
Jun 03 09:22:53 mn12 bifrost[2386398]: 2022-06-03 09:22:53 [Parachain🌈] 💤 Idle (58 peers), best: #1849597 (0xc165…38fb), finalized #1849595 (0x8a6b…e1bc), ⬇ 6.9kiB/s ⬆ 60.8kiB/s
Jun 03 09:22:54 mn12 bifrost[2386398]: 2022-06-03 09:22:54 [Relaychain] 💤 Idle (46 peers), best: #12964450 (0xba63…1506), finalized #12964447 (0xad18…0ca3), ⬇ 866.5kiB/s ⬆ 884.6kiB/s
Jun 03 09:22:54 mn12 bifrost[2386398]: 2022-06-03 09:22:54 [Relaychain] ✨ Imported #12964451 (0xf68f…1cbb)
Jun 03 09:22:58 mn12 bifrost[2386398]: 2022-06-03 09:22:58 [Parachain🌈] 💤 Idle (58 peers), best: #1849597 (0xc165…38fb), finalized #1849595 (0x8a6b…e1bc), ⬇ 0.9kiB/s ⬆ 1.5kiB/s
Jun 03 09:22:59 mn12 bifrost[2386398]: 2022-06-03 09:22:59 [Relaychain] 💤 Idle (46 peers), best: #12964451 (0xf68f…1cbb), finalized #12964448 (0x9338…7a00), ⬇ 877.9kiB/s ⬆ 873.2kiB/s
Jun 03 09:23:00 mn12 bifrost[2386398]: 2022-06-03 09:23:00 [Relaychain] ✨ Imported #12964452 (0x58a7…dea9)
Jun 03 09:23:00 mn12 bifrost[2386398]: 2022-06-03 09:23:00 [Parachain🌈] Starting collation. relay_parent=0x58a76be59dd40036e5084051a93d727aa2833e8bd47fe0b1021ae546d87cdea9 at=0xc07036dee0fd4b40425ae5daedf2b80829d482dac5ea36ca17c85934eff8757b
Jun 03 09:23:01 mn12 bifrost[2386398]: 2022-06-03 09:23:01 [Parachain🌈] ✨ Imported #1849599 (0x2b98…6461)
Jun 03 09:23:03 mn12 bifrost[2386398]: 2022-06-03 09:23:03 [Parachain🌈] 💤 Idle (58 peers), best: #1849598 (0xc070…757b), finalized #1849596 (0x9858…69ee), ⬇ 36.3kiB/s ⬆ 40.4kiB/s
Jun 03 09:23:04 mn12 bifrost[2386398]: 2022-06-03 09:23:04 [Relaychain] 💤 Idle (47 peers), best: #12964452 (0x58a7…dea9), finalized #12964448 (0x9338…7a00), ⬇ 180.7kiB/s ⬆ 221.9kiB/s
Jun 03 09:23:06 mn12 bifrost[2386398]: 2022-06-03 09:23:06 [Relaychain] ✨ Imported #12964453 (0xb5ff…c628)
Jun 03 09:23:08 mn12 bifrost[2386398]: 2022-06-03 09:23:08 [Parachain🌈] 💤 Idle (58 peers), best: #1849598 (0xc070…757b), finalized #1849596 (0x9858…69ee), ⬇ 0.8kiB/s ⬆ 0.8kiB/s
Jun 03 09:23:09 mn12 bifrost[2386398]: 2022-06-03 09:23:09 [Relaychain] 💤 Idle (46 peers), best: #12964453 (0xb5ff…c628), finalized #12964449 (0x7816…02c0), ⬇ 631.3kiB/s ⬆ 718.9kiB/s
Jun 03 09:23:12 mn12 bifrost[2386398]: 2022-06-03 09:23:12 [Relaychain] ✨ Imported #12964454 (0xa33a…297d)
Jun 03 09:23:12 mn12 bifrost[2386398]: 2022-06-03 09:23:12 [Parachain🌈] Starting collation. relay_parent=0xa33aabcfb6660545fa7dda7d67c725e02358e9a1db0d0e14ea1292f48d6e297d at=0x2b98d876533a7c67ac8c699282b128cd9c2dd378e2afb16a0304ee7d42b36461
Jun 03 09:23:12 mn12 bifrost[2386398]: 2022-06-03 09:23:12 [Parachain🌈] ✨ Imported #1849600 (0xb4ad…8357)
Jun 03 09:23:13 mn12 bifrost[2386398]: 2022-06-03 09:23:13 [Parachain🌈] 💤 Idle (57 peers), best: #1849599 (0x2b98…6461), finalized #1849596 (0x9858…69ee), ⬇ 25.8kiB/s ⬆ 39.3kiB/s
Jun 03 09:23:14 mn12 bifrost[2386398]: 2022-06-03 09:23:14 [Relaychain] 💤 Idle (46 peers), best: #12964454 (0xa33a…297d), finalized #12964449 (0x7816…02c0), ⬇ 109.1kiB/s ⬆ 217.7kiB/s
Jun 03 09:23:18 mn12 bifrost[2386398]: 2022-06-03 09:23:18 [Parachain🌈] 💤 Idle (59 peers), best: #1849599 (0x2b98…6461), finalized #1849597 (0xc165…38fb), ⬇ 1.3kiB/s ⬆ 4.7kiB/s
Jun 03 09:23:18 mn12 bifrost[2386398]: 2022-06-03 09:23:18 [Relaychain] ✨ Imported #12964455 (0xa229…a1c7)
Jun 03 09:23:19 mn12 bifrost[2386398]: 2022-06-03 09:23:19 [Relaychain] 💤 Idle (45 peers), best: #12964455 (0xa229…a1c7), finalized #12964450 (0xba63…1506), ⬇ 392.3kiB/s ⬆ 867.0kiB/s
Jun 03 09:23:23 mn12 bifrost[2386398]: 2022-06-03 09:23:23 [Parachain🌈] 💤 Idle (59 peers), best: #1849599 (0x2b98…6461), finalized #1849598 (0xc070…757b), ⬇ 0.8kiB/s ⬆ 0.8kiB/s
Jun 03 09:23:24 mn12 bifrost[2386398]: 2022-06-03 09:23:24 [Relaychain] ✨ Imported #12964456 (0x6729…9356)
Jun 03 09:23:24 mn12 bifrost[2386398]: 2022-06-03 09:23:24 [Parachain🌈] Starting collation. relay_parent=0x6729788f2dee3c7cb824ec33ba02898d13dbff0f72a793176164b1156e0f9356 at=0xb4ad33defd538344484a43ca028f24ec068c0310507968c1815db1a352d78357
Jun 03 09:23:24 mn12 bifrost[2386398]: 2022-06-03 09:23:24 [Relaychain] ♻️  Reorg on #12964456,0x6729…9356 to #12964456,0xe6e2…78be, common ancestor #12964455,0xa229…a1c7
Jun 03 09:23:24 mn12 bifrost[2386398]: 2022-06-03 09:23:24 [Relaychain] ✨ Imported #12964456 (0xe6e2…78be)
Jun 03 09:23:24 mn12 bifrost[2386398]: 2022-06-03 09:23:24 [Parachain🌈] Starting collation. relay_parent=0xe6e2c843085cde89734f2bd1abe84c5225786d818be3a306911fc3f4854278be at=0xb4ad33defd538344484a43ca028f24ec068c0310507968c1815db1a352d78357
Jun 03 09:23:24 mn12 bifrost[2386398]: 2022-06-03 09:23:24 [Parachain🌈] ✨ Imported #1849601 (0xcfa8…e0fa)
Jun 03 09:23:24 mn12 bifrost[2386398]: 2022-06-03 09:23:24 [Relaychain] ✨ Imported #12964456 (0xda4f…8001)
Jun 03 09:23:24 mn12 bifrost[2386398]: 2022-06-03 09:23:24 [Parachain🌈] Starting collation. relay_parent=0xda4fbaec8405fd32ae987949ca99be1bab6cde2152c5328253a6a73b91ff8001 at=0xb4ad33defd538344484a43ca028f24ec068c0310507968c1815db1a352d78357
Jun 03 09:23:24 mn12 bifrost[2386398]: 2022-06-03 09:23:24 [Relaychain] 💤 Idle (44 peers), best: #12964456 (0xe6e2…78be), finalized #12964452 (0x58a7…dea9), ⬇ 498.2kiB/s ⬆ 702.4kiB/s
Jun 03 09:23:25 mn12 bifrost[2386398]: 2022-06-03 09:23:25 [Parachain🌈] ✨ Imported #1849601 (0x193c…226c)
Jun 03 09:23:25 mn12 bifrost[2386398]: 2022-06-03 09:23:25 [Parachain🌈] ✨ Imported #1849601 (0xc724…7e4c)
Jun 03 09:23:26 mn12 bifrost[2386398]: 2022-06-03 09:23:26 [Parachain🌈] ✨ Imported #1849601 (0x4033…7c2b)
Jun 03 09:23:26 mn12 bifrost[2386398]: 2022-06-03 09:23:26 [Parachain🌈] ✨ Imported #1849601 (0x561c…d46d)
Jun 03 09:23:26 mn12 bifrost[2386398]: 2022-06-03 09:23:26 [Parachain🌈] ✨ Imported #1849601 (0x0499…e61f)
Jun 03 09:23:28 mn12 bifrost[2386398]: 2022-06-03 09:23:28 [Parachain🌈] 💤 Idle (57 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 169.1kiB/s ⬆ 171.0kiB/s
Jun 03 09:23:33 mn12 bifrost[2386398]: 2022-06-03 09:23:33 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 1.3kiB/s ⬆ 1.5kiB/s
Jun 03 09:23:38 mn12 bifrost[2386398]: 2022-06-03 09:23:38 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 1.1kiB/s ⬆ 1.2kiB/s
Jun 03 09:23:43 mn12 bifrost[2386398]: 2022-06-03 09:23:43 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 8.6kiB/s ⬆ 1.2kiB/s
Jun 03 09:23:48 mn12 bifrost[2386398]: 2022-06-03 09:23:48 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 0.8kiB/s ⬆ 1.0kiB/s
Jun 03 09:23:53 mn12 bifrost[2386398]: 2022-06-03 09:23:53 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 0.7kiB/s ⬆ 0.7kiB/s
Jun 03 09:23:58 mn12 bifrost[2386398]: 2022-06-03 09:23:58 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 0.6kiB/s ⬆ 0.9kiB/s
Jun 03 09:24:03 mn12 bifrost[2386398]: 2022-06-03 09:24:03 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 8.4kiB/s ⬆ 1.0kiB/s
Jun 03 09:24:07 mn12 bifrost[2386398]: 2022-06-03 09:24:07 [Parachain🌈] ✨ Imported #1849602 (0x5ece…de67)
Jun 03 09:24:08 mn12 bifrost[2386398]: 2022-06-03 09:24:08 [Parachain🌈] 💤 Idle (57 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 4.4kiB/s ⬆ 1.2kiB/s
Jun 03 09:24:13 mn12 bifrost[2386398]: 2022-06-03 09:24:13 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 8.4kiB/s ⬆ 0.9kiB/s
Jun 03 09:24:18 mn12 bifrost[2386398]: 2022-06-03 09:24:18 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 1.3kiB/s ⬆ 1.5kiB/s
Jun 03 09:24:23 mn12 bifrost[2386398]: 2022-06-03 09:24:23 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 0.7kiB/s ⬆ 0.7kiB/s
Jun 03 09:24:28 mn12 bifrost[2386398]: 2022-06-03 09:24:28 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 15.4kiB/s ⬆ 0.5kiB/s
Jun 03 09:24:33 mn12 bifrost[2386398]: 2022-06-03 09:24:33 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 8.8kiB/s ⬆ 0.7kiB/s
Jun 03 09:24:38 mn12 bifrost[2386398]: 2022-06-03 09:24:38 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 0.8kiB/s ⬆ 0.9kiB/s
Jun 03 09:24:43 mn12 bifrost[2386398]: 2022-06-03 09:24:43 [Parachain🌈] 💤 Idle (59 peers), best: #1849600 (0xb4ad…8357), finalized #1849598 (0xc070…757b), ⬇ 0.4kiB/s ⬆ 0.4kiB/s

中文优化不够彻底

切换到中文页面后,有很多地方都没有针对的翻译过来,还是用的英文。建议对中文页面更好的翻译优化。

Token not received.

I had transferred BNC from polkawallet to gate.io.
But I did not recived token.
Transaction stuck because they are karura_BNC and gate.io support only mainet_BNC.

Why 2 BNC are different?
Now gate.io does not able to add BNC to my account because these are karura_BNC.

Suggest me solution how I will get these tokens in my any of account?

20211023_203902

cargo build fail

➜  bifrost git:(master) git rev-parse HEAD
4d38d3176dc03b471c2f8db079480ea04498ccaf

➜  bifrost git:(master) cargo --version
cargo 1.43.0 (2cbe9048e 2020-05-03)

➜  bifrost git:(master) rustc --version
rustc 1.43.1 (8d69840ab 2020-05-04)


➜  bifrost git:(master) substrate --version
substrate 2.0.0-alpha.8-7e9a2ae78-x86_64-linux-gnu

➜  bifrost git:(master) wasmer --version   
wasmer 0.6.0

   Compiling wasmi-validation v0.1.0
error[E0432]: unresolved import `hashbrown`
  --> /home/ronyang/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmi-validation-0.1.0/src/lib.rs:31:5
   |
31 | use hashbrown::HashSet;
   |     ^^^^^^^^^ use of undeclared type or module `hashbrown`

   Compiling pwasm-utils v0.6.2
error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: could not compile `wasmi-validation`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

warning: build failed, waiting for other jobs to finish...
error: build failed

About CC4-Flexable Fee

About Support users to use multiple payment fees

The video shows that other tokens will not be consumed as GAS in case of insufficient ASG.Dissatisfied: if the balance is insufficient, it will be automatically postponed to the next currency set and Support users to pay fees in multiple currencies, and users can pay fees freely even if they do not have BNC in their accounts.
Click the image below to jump to the video 👇

About Support user to define the currency order used for commission payment

ASG can only be used as the first payment method.
Changing the order of payment causes an error.
Dissatisfied: Support user to define the currency order used for commission payment.
Click the image below to jump to the video 👇

Errors during block import

I'm running an archival node with following docker-compose.yml:

version: '2'

services:
  bifrost:
    image: bifrostnetwork/bifrost
    ports:
      - 19947:9944 # ws port
    volumes:
      - ./bifrost:/data
    command: [
      "--chain", "bifrost",
      "--pruning", "archive",
      "--ws-external",
      "--rpc-external",
      "--rpc-cors", "all"
    ]

And I noticed that there are some errors. Don't know or care too much, but I hope it is useful for you folks:

bifrost_1  | 2021-10-28 14:51:54 [Relaychain] ✨ Imported #9852210 (0x34af…9521)    
bifrost_1  | 2021-10-28 14:51:54 [Parachain🌈] 💤 Idle (1 peers), best: #654402 (0xa84d…0250), finalized #654402 (0xa84d…0250), ⬇ 1.1kiB/s ⬆ 1.4kiB/s    
bifrost_1  | 2021-10-28 14:51:58 [Relaychain] 💤 Idle (40 peers), best: #9852210 (0x34af…9521), finalized #9852207 (0x37c3…b167), ⬇ 217.9kiB/s ⬆ 577.1kiB/s    
bifrost_1  | 2021-10-28 14:51:59 [Parachain🌈] ⚙️  Syncing  0.0 bps, target=#655914 (3 peers), best: #654402 (0xa84d…0250), finalized #654402 (0xa84d…0250), ⬇ 3.3kiB/s ⬆ 2.0kiB/s    
bifrost_1  | 2021-10-28 14:52:00 [Relaychain] ✨ Imported #9852211 (0xb677…80f7)    
bifrost_1  | 2021-10-28 14:52:00 [Relaychain] ✨ Imported #9852211 (0xed24…7268)    
bifrost_1  | 2021-10-28 14:52:01 [Parachain🌈] panicked at 'Storage root must match that calculated.', /cargo-home/git/checkouts/substrate-7e08433d4c370a21/57346f6/frame/executive/src/lib.rs:503:9    
bifrost_1  | 2021-10-28 14:52:01 [Parachain🌈] Block prepare storage changes error:
bifrost_1  | RuntimeApiError(Application(Execution(Other("Wasm execution trapped: wasm trap: unreachable\nwasm backtrace:\n    0: 0x32ef8a - <unknown>!rust_begin_unwind\n    1: 0x24dd - <unknown>!core::panicking::panic_fmt::h3ab5417155b7ba3b\n    2: 0x1b71 - <unknown>!core::panicking::panic::h5bfdfaa3db9a4b4a\n    3: 0x1e77cf - <unknown>!frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPallets,COnRuntimeUpgrade>::execute_block::h06ad04c865112a1b\n    4: 0x1f5ab1 - <unknown>!Core_execute_block\nnote: run with `WASMTIME_BACKTRACE_DETAILS=1` environment variable to display more information\n"))))    
bifrost_1  | 2021-10-28 14:52:01 [Parachain🌈] 💔 Error importing block 0xdf70ff07d9a16bd9c4887ace8d64d68e033d8421f3189199dc6cae6188f70826: Err(Other(ClientImport("Error at calling runtime api: Execution failed: Other(\"Wasm execution trapped: wasm trap: unreachable\\nwasm backtrace:\\n    0: 0x32ef8a - <unknown>!rust_begin_unwind\\n    1: 0x24dd - <unknown>!core::panicking::panic_fmt::h3ab5417155b7ba3b\\n    2: 0x1b71 - <unknown>!core::panicking::panic::h5bfdfaa3db9a4b4a\\n    3: 0x1e77cf - <unknown>!frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPallets,COnRuntimeUpgrade>::execute_block::h06ad04c865112a1b\\n    4: 0x1f5ab1 - <unknown>!Core_execute_block\\nnote: run with `WASMTIME_BACKTRACE_DETAILS=1` environment variable to display more information\\n\")")))    
bifrost_1  | 2021-10-28 14:52:03 [Relaychain] 💤 Idle (40 peers), best: #9852211 (0xb677…80f7), finalized #9852208 (0xfffb…fa38), ⬇ 268.9kiB/s ⬆ 537.8kiB/s    
bifrost_1  | 2021-10-28 14:52:04 [Parachain🌈] ⚙️  Syncing  0.0 bps, target=#655916 (2 peers), best: #654402 (0xa84d…0250), finalized #654402 (0xa84d…0250), ⬇ 118.1kiB/s ⬆ 1.1kiB/s    
bifrost_1  | 2021-10-28 14:52:04 [Parachain🌈] panicked at 'Storage root must match that calculated.', /cargo-home/git/checkouts/substrate-7e08433d4c370a21/57346f6/frame/executive/src/lib.rs:503:9    
bifrost_1  | 2021-10-28 14:52:04 [Parachain🌈] Block prepare storage changes error:
bifrost_1  | RuntimeApiError(Application(Execution(Other("Wasm execution trapped: wasm trap: unreachable\nwasm backtrace:\n    0: 0x32ef8a - <unknown>!rust_begin_unwind\n    1: 0x24dd - <unknown>!core::panicking::panic_fmt::h3ab5417155b7ba3b\n    2: 0x1b71 - <unknown>!core::panicking::panic::h5bfdfaa3db9a4b4a\n    3: 0x1e77cf - <unknown>!frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPallets,COnRuntimeUpgrade>::execute_block::h06ad04c865112a1b\n    4: 0x1f5ab1 - <unknown>!Core_execute_block\nnote: run with `WASMTIME_BACKTRACE_DETAILS=1` environment variable to display more information\n"))))    
bifrost_1  | 2021-10-28 14:52:04 [Parachain🌈] 💔 Error importing block 0xdf70ff07d9a16bd9c4887ace8d64d68e033d8421f3189199dc6cae6188f70826: Err(Other(ClientImport("Error at calling runtime api: Execution failed: Other(\"Wasm execution trapped: wasm trap: unreachable\\nwasm backtrace:\\n    0: 0x32ef8a - <unknown>!rust_begin_unwind\\n    1: 0x24dd - <unknown>!core::panicking::panic_fmt::h3ab5417155b7ba3b\\n    2: 0x1b71 - <unknown>!core::panicking::panic::h5bfdfaa3db9a4b4a\\n    3: 0x1e77cf - <unknown>!frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPallets,COnRuntimeUpgrade>::execute_block::h06ad04c865112a1b\\n    4: 0x1f5ab1 - <unknown>!Core_execute_block\\nnote: run with `WASMTIME_BACKTRACE_DETAILS=1` environment variable to display more information\\n\")")))    
bifrost_1  | 2021-10-28 14:52:06 [Relaychain] ✨ Imported #9852212 (0x40ba…839f)    
bifrost_1  | 2021-10-28 14:52:06 [Relaychain] ♻️  Reorg on #9852212,0x40ba…839f to #9852212,0x6cd6…403a, common ancestor #9852211,0xb677…80f7    
bifrost_1  | 2021-10-28 14:52:06 [Relaychain] ✨ Imported #9852212 (0x6cd6…403a)    
bifrost_1  | 2021-10-28 14:52:08 [Relaychain] 💤 Idle (40 peers), best: #9852212 (0x6cd6…403a), finalized #9852208 (0xfffb…fa38), ⬇ 461.1kiB/s ⬆ 494.2kiB/s    
bifrost_1  | 2021-10-28 14:52:09 [Parachain🌈] 💤 Idle (1 peers), best: #654402 (0xa84d…0250), finalized #654402 (0xa84d…0250), ⬇ 57.1kiB/s ⬆ 1.1kiB/s    
bifrost_1  | 2021-10-28 14:52:13 [Relaychain] 💤 Idle (39 peers), best: #9852212 (0x6cd6…403a), finalized #9852209 (0xae03…f9ce), ⬇ 306.6kiB/s ⬆ 406.6kiB/s    
bifrost_1  | 2021-10-28 14:52:13 [Relaychain] ✨ Imported #9852213 (0xda6f…1fc8)    

Panick in cumulus-pallet-parachain-system on v0.10.0

After upgrading our collator to release v0.10.0 we're seeing Panicks in cumulus-pallet-parachain-system.

See error below:

Jun 05 20:37:00 bnc1 bifrost[1100869]: 2024-06-05 20:37:00 [Parachain🌈] panicked at /home/builder/cargo/registry/src/index.crates.io-6f17d22bba15001f/cumulus-pallet-parachain-system-0.7.0/src/lib.rs:1283:17:
Jun 05 20:37:00 bnc1 bifrost[1100869]: assertion `left == right` failed: expected parent to be included
Jun 05 20:37:00 bnc1 bifrost[1100869]:   left: 0x328acd68707108be6bd097e891f949e7ccec74f64194920c5172ebc38614846a
Jun 05 20:37:00 bnc1 bifrost[1100869]:  right: 0x457cca6cf3dcd1a726dc36b6ac777635c011568cb6cb2af9bf0486b1163e0ed5
Jun 05 20:37:00 bnc1 bifrost[1100869]: 2024-06-05 20:37:00 [Parachain🌈] 1 storage transactions are left open by the runtime. Those will be rolled back.
Jun 05 20:37:00 bnc1 bifrost[1100869]: 2024-06-05 20:37:00 [Parachain🌈] 1 storage transactions are left open by the runtime. Those will be rolled back.
Jun 05 20:37:00 bnc1 bifrost[1100869]: 2024-06-05 20:37:00 [Parachain🌈] ❗️ Inherent extrinsic returned unexpected error: Error at calling runtime api: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
Jun 05 20:37:00 bnc1 bifrost[1100869]: WASM backtrace:
Jun 05 20:37:00 bnc1 bifrost[1100869]: error while executing at wasm backtrace:
Jun 05 20:37:00 bnc1 bifrost[1100869]:     0: 0x7f2799 - <unknown>!rust_begin_unwind
Jun 05 20:37:00 bnc1 bifrost[1100869]:     1: 0x76bb7e - <unknown>!core::panicking::panic_fmt::h7d22643b0becf577
Jun 05 20:37:00 bnc1 bifrost[1100869]:     2: 0x76c5d6 - <unknown>!core::panicking::assert_failed_inner::hf53be49d983c07ca
Jun 05 20:37:00 bnc1 bifrost[1100869]:     3: 0x270df6 - <unknown>!core::panicking::assert_failed::h2d65652b727ca1d4
Jun 05 20:37:00 bnc1 bifrost[1100869]:     4: 0x42bfe0 - <unknown>!cumulus_pallet_parachain_system::<impl cumulus_pallet_parachain_system::pallet::Pallet<T>>::maybe_drop_included_ancestors::h5cff18225f92ef14
Jun 05 20:37:00 bnc1 bifrost[1100869]:     5: 0x153ba8 - <unknown>!frame_support::storage::transactional::with_transaction::h73feacd6468b1b82
Jun 05 20:37:00 bnc1 bifrost[1100869]:     6: 0x2b7939 - <unknown>!<cumulus_pallet_parachain_system::pallet::Call<T> as frame_support::traits::dispatch::UnfilteredDispatchable>::dispatch_bypass_filter::{{closure}}::hfeacde750a068210
Jun 05 20:37:00 bnc1 bifrost[1100869]:     7: 0x2c9460 - <unknown>!environmental::local_key::LocalKey<T>::with::hca7131440c81cfed
Jun 05 20:37:00 bnc1 bifrost[1100869]:     8: 0x64cc47 - <unknown>!frame_support::dispatch_context::run_in_context::hb8978b6f5b556200
Jun 05 20:37:00 bnc1 bifrost[1100869]:     9: 0x1777f - <unknown>!<bifrost_kusama_runtime::RuntimeCall as frame_support::traits::dispatch::UnfilteredDispatchable>::dispatch_bypass_filter::h3db95bc5caa5bda3
Jun 05 20:37:00 bnc1 bifrost[1100869]:    10: 0x28873 - <unknown>!<bifrost_kusama_runtime::RuntimeCall as sp_runtime::traits::Dispatchable>::dispatch::hf58a945d9c0617d8
Jun 05 20:37:00 bnc1 bifrost[1100869]:    11: 0x2b82b9 - <unknown>!<sp_runtime::generic::checked_extrinsic::CheckedExtrinsic<AccountId,Call,Extra> as sp_runtime::traits::Applyable>::apply::he7b5b0f91f8e98ce
Jun 05 20:37:00 bnc1 bifrost[1100869]:    12: 0x516121 - <unknown>!frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPalletsWithSystem,COnRuntimeUpgrade>::apply_extrinsic::ha8a394cb3b1fe4e2
Jun 05 20:37:00 bnc1 bifrost[1100869]:    13: 0x756a9d - <unknown>!BlockBuilder_apply_extrinsic. Dropping.
Jun 05 20:37:00 bnc1 bifrost[1100869]: 2024-06-05 20:37:00 [Parachain🌈] panicked at /home/builder/cargo/registry/src/index.crates.io-6f17d22bba15001f/cumulus-pallet-parachain-system-0.7.0/src/lib.rs:265:18:
Jun 05 20:37:00 bnc1 bifrost[1100869]: set_validation_data inherent needs to be present in every block!
Jun 05 20:37:00 bnc1 bifrost[1100869]: 2024-06-05 20:37:00 [Parachain🌈] err=Error { inner: Proposing
Jun 05 20:37:00 bnc1 bifrost[1100869]: Caused by:
Jun 05 20:37:00 bnc1 bifrost[1100869]:     0: Error at calling runtime api: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
Jun 05 20:37:00 bnc1 bifrost[1100869]:        WASM backtrace:
Jun 05 20:37:00 bnc1 bifrost[1100869]:        error while executing at wasm backtrace:
Jun 05 20:37:00 bnc1 bifrost[1100869]:            0: 0x7f2799 - <unknown>!rust_begin_unwind
Jun 05 20:37:00 bnc1 bifrost[1100869]:            1: 0x76bb7e - <unknown>!core::panicking::panic_fmt::h7d22643b0becf577
Jun 05 20:37:00 bnc1 bifrost[1100869]:            2: 0x76c211 - <unknown>!core::option::expect_failed::hd82c6d6933db2709
Jun 05 20:37:00 bnc1 bifrost[1100869]:            3: 0x3f30d4 - <unknown>!<(TupleElement0,TupleElement1,TupleElement2,TupleElement3,TupleElement4,TupleElement5,TupleElement6,TupleElement7,TupleElement8,TupleElement9,TupleElement10,TupleElement11,TupleElement12,TupleElement13,TupleElement14,TupleElement15,TupleElement16,TupleElement17,TupleElement18,TupleElement19,TupleElement20,TupleElement21,TupleElement22,TupleElement23,TupleElement24,TupleElement25,TupleElement26,TupleElement27,TupleElement28,TupleElement29,TupleElement30,TupleElement31,TupleElement32,TupleElement33,TupleElement34,TupleElement35,TupleElement36,TupleElement37,TupleElement38,TupleElement39,TupleElement40,TupleElement41,TupleElement42,TupleElement43,TupleElement44,TupleElement45,TupleElement46,TupleElement47,TupleElement48,TupleElement49,TupleElement50,TupleElement51,TupleElement52,TupleElement53,TupleElement54,TupleElement55,TupleElement56,TupleElement57,TupleElement58,TupleElement59,TupleElement60,TupleElement61,TupleElement62,TupleElement63,TupleElement64,TupleElement65,TupleElement66,TupleElement67,TupleElement68,TupleElement69,TupleElement70) as frame_support::traits::hooks::OnFinalize<BlockNumber>>::on_finalize::hed27b1d078b9f84b
Jun 05 20:37:00 bnc1 bifrost[1100869]:            4: 0x51655c - <unknown>!frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPalletsWithSystem,COnRuntimeUpgrade>::idle_and_finalize_hook::hc9829f4708ff898d
Jun 05 20:37:00 bnc1 bifrost[1100869]:            5: 0x756b64 - <unknown>!BlockBuilder_finalize_block
Jun 05 20:37:00 bnc1 bifrost[1100869]:     1: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
Jun 05 20:37:00 bnc1 bifrost[1100869]:        WASM backtrace:
Jun 05 20:37:00 bnc1 bifrost[1100869]:        error while executing at wasm backtrace:
Jun 05 20:37:00 bnc1 bifrost[1100869]:            0: 0x7f2799 - <unknown>!rust_begin_unwind
Jun 05 20:37:00 bnc1 bifrost[1100869]:            1: 0x76bb7e - <unknown>!core::panicking::panic_fmt::h7d22643b0becf577
Jun 05 20:37:00 bnc1 bifrost[1100869]:            2: 0x76c211 - <unknown>!core::option::expect_failed::hd82c6d6933db2709
Jun 05 20:37:00 bnc1 bifrost[1100869]:            3: 0x3f30d4 - <unknown>!<(TupleElement0,TupleElement1,TupleElement2,TupleElement3,TupleElement4,TupleElement5,TupleElement6,TupleElement7,TupleElement8,TupleElement9,TupleElement10,TupleElement11,TupleElement12,TupleElement13,TupleElement14,TupleElement15,TupleElement16,TupleElement17,TupleElement18,TupleElement19,TupleElement20,TupleElement21,TupleElement22,TupleElement23,TupleElement24,TupleElement25,TupleElement26,TupleElement27,TupleElement28,TupleElement29,TupleElement30,TupleElement31,TupleElement32,TupleElement33,TupleElement34,TupleElement35,TupleElement36,TupleElement37,TupleElement38,TupleElement39,TupleElement40,TupleElement41,TupleElement42,TupleElement43,TupleElement44,TupleElement45,TupleElement46,TupleElement47,TupleElement48,TupleElement49,TupleElement50,TupleElement51,TupleElement52,TupleElement53,TupleElement54,TupleElement55,TupleElement56,TupleElement57,TupleElement58,TupleElement59,TupleElement60,TupleElement61,TupleElement62,TupleElement63,TupleElement64,TupleElement65,TupleElement66,TupleElement67,TupleElement68,TupleElement69,TupleElement70) as frame_support::traits::hooks::OnFinalize<BlockNumber>>::on_finalize::hed27b1d078b9f84b
Jun 05 20:37:00 bnc1 bifrost[1100869]:            4: 0x51655c - <unknown>!frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPalletsWithSystem,COnRuntimeUpgrade>::idle_and_finalize_hook::hc9829f4708ff898d
Jun 05 20:37:00 bnc1 bifrost[1100869]:            5: 0x756b64 - <unknown>!BlockBuilder_finalize_block }

Hit me up if you need more information.

Tag bifrost-v0.9.84 not belonging to any branch

Hello,

I'm trying to build from source but I can't checkout the tag bifrost-v0.9.84
It says: This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Please could you push the branch (or merge to master) where the tag belogns?

Best,

hirishh

Critical database error "Corruption: Bad table magic number: expected 9863518390377041911, found 0"

Full log message is provided below:

2020-08-01 15:03:57 ⛓  Native runtime: bifrost-12 (bifrost-node-1.tx1.au1)

====================

Version: 0.4.0

   0: sp_panic_handler::set::{{closure}}
   1: std::panicking::rust_panic_with_hook
             at rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:490
   2: rust_begin_unwind
             at rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:388
   3: std::panicking::begin_panic_fmt
             at rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:342
   4: <sp_database::kvdb::DbAdapter as sp_database::Database>::get
   5: sc_finality_grandpa::aux_schema::load_persistent
   6: sc_finality_grandpa::block_import
   7: sc_service::builder::ServiceBuilder<TBl,TRtApi,TCl,TFchr,TSc,TImpQu,TFprb,TFpp,TExPool,TRpc,Backend>::with_import_queue
   8: node_cli::service::new_full
   9: sc_cli::runner::Runner::run_node
  10: node_cli::command::run
  11: bifrost_node::main
  12: std::rt::lang_start::{{closure}}
  13: std::rt::lang_start_internal::{{closure}}
             at rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/rt.rs:52
      std::panicking::try::do_call
             at rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:297
      std::panicking::try
             at rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:274
      std::panic::catch_unwind
             at rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panic.rs:394
      std::rt::lang_start_internal
             at rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/rt.rs:51
  14: main
  15: __libc_start_main
  16: _start

Thread 'main' panicked at 'Critical database eror: Custom { kind: Other, error: Error { message: "Corruption: Bad table magic number: expected 9863518390377041911, found 0 in /node/chains/bifrost_testnet/db/098270.sst" } }', /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/macros.rs:16

This is a bug. Please report it at:

        https://github.com/bifrost-finance/bifrost/issues/new

rust求职

我刚刚发了份简历到你们的邮箱([email protected]),如果你们对我有兴趣的话,请给予我回复,谢谢

Yoken not transferred

20211023_203902

Why it happened where is token. And why I did not received it or reverted back.
Subscane team told me to contact you.

version 'GLIBC_2.32' not found after update collator to version > 0.9.66

Hi I have problem I cant update my collator from 0.9.66 to the higher version.
After run newer version i get an error:
-- Logs begin at Mon 2022-12-12 05:01:16 UTC. -- Jan 28 21:16:02 bifrost metabase[344639]: /home/jaszczomp/bifrost_mainnet/bifrost: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.32' not found (required by /home/jaszczomp/bifrost_mainnet/bifrost) Jan 28 21:16:02 bifrost metabase[344639]: /home/jaszczomp/bifrost_mainnet/bifrost: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.33' not found (required by /home/jaszczomp/bifrost_mainnet/bifrost) Jan 28 21:16:02 bifrost metabase[344639]: /home/jaszczomp/bifrost_mainnet/bifrost: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.34' not found (required by /home/jaszczomp/bifrost_mainnet/bifrost) Jan 28 21:16:02 bifrost systemd[1]: bifrost.service: Main process exited, code=exited, status=1/FAILURE Jan 28 21:16:02 bifrost systemd[1]: bifrost.service: Failed with result 'exit-code'. Jan 28 21:16:02 bifrost systemd[1]: bifrost.service: Scheduled restart job, restart counter is at 5. Jan 28 21:16:02 bifrost systemd[1]: Stopped Bifrost Collator. Jan 28 21:16:02 bifrost systemd[1]: bifrost.service: Start request repeated too quickly. Jan 28 21:16:02 bifrost systemd[1]: bifrost.service: Failed with result 'exit-code'. Jan 28 21:16:02 bifrost systemd[1]: Failed to start Bifrost Collator.

My OS:
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.5 LTS Release: 20.04 Codename: focal

How to solve it?

dashboard BUG

使用JSON恢复的账号,刷新浏览器后所恢复的账号丢失。

Introduction on boot asgrad cc3 in docker

Hi how do i boot local biforst asgard cc3 node in docker? I didn't find the introduction here but I tried to use command as follow

docker pull bifrostnetwork/bifrost:asgard-v0.5.0 docker run -p 9944:9944 bifrostnetwork/bifrost:asgard-v0.5.0 --
However, I got 0 peers and 0 block finalized. Please help.

Thread 'tokio-runtime-worker' panicked at 'header is last in set and contains standard change signal

Node crashed with this error:

====================
Version: 0.9.70-ad3d9c0aba5
0: sp_panic_handler::set::{{closure}}
1: <alloc::boxed::Box<F,A> as core::ops::function::Fn>::call
at rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/alloc/src/boxed.rs:2032:9
std::panicking::rust_panic_with_hook
at rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/std/src/panicking.rs:692:13
2: std::panicking::begin_panic_handler::{{closure}}
at rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/std/src/panicking.rs:579:13
3: std::sys_common::backtrace::__rust_end_short_backtrace
at rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/std/src/sys_common/backtrace.rs:137:18
4: rust_begin_unwind
at rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/std/src/panicking.rs:575:5
5: core::panicking::panic_fmt
at rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/core/src/panicking.rs:65:14
6: core::panicking::panic_display
7: core::panicking::panic_str
at rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/core/src/panicking.rs:122:5
8: core::option::expect_failed
at rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/core/src/option.rs:1879:5
9: <sc_finality_grandpa::warp_proof::NetworkProvider<Block,Backend> as sc_network_common::sync::warp::WarpSyncProvider>::generate
10: <core::future::from_generator::GenFuture as core::future::future::Future>::poll
11: <tracing_futures::Instrumented as core::future::future::Future>::poll
12: tokio::runtime::task::raw::poll
13: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
14: tokio::runtime::scheduler::multi_thread::worker::run
15: tokio::runtime::task::raw::poll
16: std::sys_common::backtrace::__rust_begin_short_backtrace
17: core::ops::function::FnOnce::call_once{{vtable.shim}}
18: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once
at rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/alloc/src/boxed.rs:2000:9
<alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once
at rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/alloc/src/boxed.rs:2000:9
std::sys::unix::thread::Thread::new::thread_start
at rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/std/src/sys/unix/thread.rs:108:17
19:
20:
Thread 'tokio-runtime-worker' panicked at 'header is last in set and contains standard change signal; must have justification; qed.', /home/runner/.cargo/git/checkouts/substrate-7e08433d4c370a21/946507b/client/finality-gr
andpa/src/warp_proof.rs:135
This is a bug. Please report it at:
https://github.com/bifrost-finance/bifrost/issues/new
bifrost-collator-CVN1201.service: Main process exited, code=exited, status=1/FAILURE
bifrost-collator-CVN1201.service: Failed with result 'exit-code'.


Bifrost Collator version 0.9.70-ad3d9c0aba5
Native runtime: bifrost-970 (bifrost-0.tx1.au1)
Operating system: linux
CPU architecture: x86_64
Target environment: gnu
CPU: AMD EPYC 7282 16-Core Processor
CPU cores: 8
Memory: 30088MB
Kernel: 5.15.0-67-generic
Linux distribution: Ubuntu 22.04.2 LTS

Update 2023-04-12: Also with version 0.9.71-a69d710b6eb

node can't run

Thread 'import-queue-worker-0' panicked at 'Storage root must match that calculated.', <::std::macros::panic macros>:2

can't build by error blow

error: failed to resolve patches for https://github.com/rust-lang/crates.io-index

Caused by:
failed to load source for dependency zenlink-protocol

Caused by:
Unable to update ssh://[email protected]/bifrost-finance/Zenlink-DEX-Module?branch=polkadot-v0.9.8#8e9e8708

InsufficientBalance when bridging BNC

I'm trying to replicate the Acala -> Bifrost bridge that took place last September locally (https://acala.discourse.group/t/open-hrmp-cross-chain-communication-between-bifrost-and-karura-parachain/316/3). My set-up script is here: https://github.com/0xmostima/parachain-launch/blob/master/config_mix.yml

When Bifrost processes the received XCM messages (sent from Alice from Acala depositing BNC into Alice at Bifrost), it throws the error InsufficientBalance:

ensure!(balance >= amount, Error::<T>::InsufficientBalance);

Any clues as to why is this the case? Alice in Bifrost should have enough BNC balance both for existential deposit and BuyExecution.

Testnet Not showing best and target blocks

Description

Parachain not showing target and best in the logs while running the testnet of bifrost node.

Expected Behaviour

Target and synced best and finalised nodes should be shown in logs

Screenshot

MicrosoftTeams-image (15)

slippage calculation seems off on dapp

When I put in 1000ksm rather than 100ksm then I'm getting a lot of slippage (if I did the trade) but it's showing less than 6 per cent slippage. Definitely doesn't look right to me. If the pool was big enough then 24,000 tether would be about right. Can you have a look - Karura / Basalisk seem to have got it right if you want to crib on their swap pages as comparisons.

With kind regards,

Giles

image

优化建议

在页面没有个地方能够看到自己现在连接的钱包地址,也没有方便复制当前钱包地址的地方,建议在钱包处加上地址连接地址可见的。

连接钱包的建议

红色方框框住的地方可以增加显示详细地址或者首尾几位嘛?这样好辨别
蓝色椭圆圈住的可以增加地址复制功能嘛?

report " doesn't have a size known at compile-time" in mac m1 when cargo build

the rustc is 1.62.0-nightly (ecd44958e 2022-05-10)

error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
   --> node/cli/src/command.rs:526:8
    |
526 |             let output_buf = with_runtime_or_err!(chain_spec, {
    |                 ^^^^^^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `Sized` is not implemented for `[u8]`
    = note: all local variables must have a statically known size
    = help: unsized locals are gated as an unstable feature


error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
   --> node/cli/src/command.rs:540:5
    |
540 |                 std::fs::write(output, output_buf)?;
    |                 ^^^^^^^^^^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `std::fs::write`
   --> /Users/li/.rustup/toolchains/nightly-2022-05-11-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/fs.rs:315:30
    |
315 | pub fn write<P: AsRef<Path>, C: AsRef<[u8]>>(path: P, contents: C) -> io::Result<()> {
    |                              ^ required by this bound in `std::fs::write`

error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
   --> node/cli/src/command.rs:540:28
    |
540 |                 std::fs::write(output, output_buf)?;
    |                                        ^^^^^^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `Sized` is not implemented for `[u8]`
    = note: all function arguments must have a statically known size
    = help: unsized fn params are gated as an unstable feature

For more information about this error, try `rustc --explain E0277`.
error: could not compile `node-cli` due to 3 previous errors

Latest version does not start

Version: bifrost-v0.9.90
Command flag: /opt/bncmain/core/bifrost --validator --name=BitStack-0 --base-path=/mnt/bncmain/node --chain=bifrost --database=rocksdb --relay-chain-rpc-urls ws://ksm-0.ksm.blocknodehub.com:9944 ws://ksm-1.ksm.blocknodehub.com:9944 ws://ksm-2.ksm.blocknodehub.com:9944 ws://ksm-3.ksm.blocknodehub.com:9944 --execution=wasm --wasm-execution=compiled --trie-cache-size=0 --db-cache=4000 --rpc-port=9944 --unsafe-rpc-external --rpc-methods=unsafe --rpc-cors=all --rpc-max-connections=2000 --port=30333 --state-pruning=archive --blocks-pruning=archive

error log:

Error: Input("Error parsing spec file: missing field `relayChain` at line 52182 column 1")

Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed

Binary: bifrost 0.9.96-f707a9199b8, also in v0.9.98
Ubuntu: 22.04

image

ExecStart=/bifrost
--collator
--base-path /PATH/
--name 'StakeWorks | Bifrost | HDS05'
--chain bifrost-kusama.json
--trie-cache-size=134217728
--max-runtime-instances 32
--in-peers 35
--out-peers 15
--telemetry-url 'wss://telemetry.polkadot.io/submit/ 0'
--prometheus-port 1965
--no-private-ipv4
--listen-addr /ip4/xx.xx.xx.xx/tcp/30333/ws
--rpc-port 9944
--
--base-path /PATH/
--blocks-pruning=1000
--in-peers 35
--out-peers 15
--no-private-ipv4
--port 30334
--rpc-port 9945
--no-prometheus

InvalidConfiguration "Column config mismatch for column 4"

Description
After upgrade from version 0.9.43 to 0.9.52 node failed to start with error:
Error: Service(Other("Scale codec deserialization error: InvalidConfiguration("Column config mismatch for column 4. Expected \"preimage: false, uniform: false, refc: false, compression: 0, ordered: true\", got \"preimage: false, uniform: false, refc: false, compression: 0, ordered: false\"")"))

Environment
Operating system: Ubuntu 22.04 LTS
bifrost 0.9.52-unknown

Additional Information
Node is run with "--database paritydb" for parachain and relaychain!
A second node without "--database paritydb" had no problems

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.