Closed tdiesler closed 3 years ago
use tcp://data-seed-prealpha-1-s1.binance.org:80
Using ...
"bbc_config": {
"rpc_addrs": [
"http://data-seed-prealpha-1-s1.binance.org:80"
],
"bsc_config": {
"providers": [
"tcp://data-seed-prealpha-1-s1.binance.org:80"
],
gives ...
2021-06-29 10:19:54 INFO Serve start admin server at 0.0.0.0:8080
panic: new eth client error
goroutine 1 [running]:
github.com/binance-chain/bsc-relayer/executor.initClients(0xc0004757c0, 0x1, 0x4, 0xc00000e7a0, 0x306e99d6dc1b05f9, 0xb0cfa6e3cba80702)
/opt/app/executor/bsc_executor.go:81 +0x2d2
github.com/binance-chain/bsc-relayer/executor.NewBSCExecutor(0x0, 0xc0000828a0, 0xc00001e600, 0x0, 0x0, 0xc000ba9e40)
/opt/app/executor/bsc_executor.go:109 +0xc4
main.main()
/opt/app/main.go:120 +0x384
BTW, thanks for continuing support. Once we have this working, I'll do a writeup for the benefit of others.
? why use the same endpoint ???????????
"bbc_config": { "rpc_addrs": [ "tcp://data-seed-pre-0-s1.binance.org:80" ],
"bsc_config": { "providers": [ "https://data-seed-prebsc-1-s1.binance.org:8545" ],
Ok, now I get ...
bash-5.0# bsc-relayer --bbc-network-type 0 --config-type local --config-path config/config.json
2021-06-29 11:19:50 INFO Serve start admin server at 0.0.0.0:8080
2021-06-29 11:19:51 INFO main Starting relayer
2021-06-29 11:19:52 INFO registerRelayerHub Register this relayer to RelayerHub
panic: insufficient funds for gas * price + value
goroutine 1 [running]:
github.com/binance-chain/bsc-relayer/relayer.(*Relayer).registerRelayerHub(0xc0001a8ea0)
/opt/app/relayer/register.go:22 +0x26d
github.com/binance-chain/bsc-relayer/relayer.(*Relayer).Start(0xc0001a8ea0, 0xd328eb, 0xc0000f7780, 0x20, 0x40)
/opt/app/relayer/relayer.go:29 +0x2f
main.main()
/opt/app/main.go:140 +0xbdc
which brings me back to not (easily) being able to obtain 100+ BNB for the testnet.
Let's assume testing works fine and I actually want to give this a try on the mainnet. I would then have to fund the account associated with the private key in the config with 100+ BNB. A potential attacker, who gains access to the box that holds the local config would immediately also gain access to those 100+ BNB (i.e. $30000 atm). Moving the config to AWS would not help, because the AWS secret key is also exposed - or am I missing something?
How are folks running these nodes in practise?
Shall we have a feature request that separates the registration fee from the Tx fee, so that a running node would only expose the account that holds the BNB to pay Tx fees?
I assume that "Register this relayer to RelayerHub" would be automatically done by the node when sufficiently funded. Is this a deposit that I can get back? Do I need to go through some special deregistration process or do I keep control over these 100 BNB i.e. can I withdraw any time?
I found this ...
actually, this is an opensource project and designed to relay the cross chain packages in time. you can change it as you want and you will compete with the other community members, so do your own optimization.
When starting the relayer, I now see ...
with ...