-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
devp2p ,Does it support BSC networks? #1394
Comments
my version is @ethereumjs/[email protected] , thank you . |
other error is: Peer error1 (135.125.219.7:30303): NetworkId mismatch: 38 / d74c ] |
2, other error: |
3, other info: |
I know @srgl was able to get it working (see comments in this issue. We don't actively support BSC but it looks like it should work based on this previous issue. @srgl, any chance you could share the |
I am using the following common object:
Also replace checkblock parameters in peer-communication.ts according to bsc chain. |
thank you |
|
hi,@srgl thank you for hlep me! |
You can ignore peer ban errors. What TX are you trying to receive? |
in addition, |
I need to receive new block and tx |
i have not find checkblock param ... |
You need to correct these lines according to the bsc: ethereumjs-monorepo/packages/devp2p/examples/peer-communication.ts Lines 36 to 44 in 3a989d0
|
Sorry, I do not have a code, but you can use any block number/hash from the chain. |
|
I succeeded. I got TX. Thank you very much for your help. I wish you have a nice day! |
@srgl @myuniswap2000 I'm still not sure what should I use for CHECK_BLOCK_HEADER? I already took the number and hash of a block from BSC. But where do I get that CHECK_BLOCK_HEADER Buffer hex string from? |
@bpbogdanpop That is the block RLP for the Berlin hardfork block (as an example). If you want to replace it with another block, you can request it from the peer and console.log their payload output (with |
hello, amin, everyone!
1,devp2p ,Does it support BSC networks?
2, I run /packages/devp2p/examples/peer-communication.ts:
node -r ts-node/register ./examples/peer-communication.ts:
but, it is error:
Peer error1 (18.176.58.248:30311): Genesis block mismatch: d4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3 / 0d21840abff46b96c84b2ac9e10e4f5cdaeb5693cb665db62a2f3b02d2d57b5b
Remove peer: 18.176.58.248:30311 - peer disconnect, reason: SUBPROTOCOL_ERROR (16) (total: 1)
3,i add bsc conf is : import bsc.json
const common = new Common({ chain: bsc });
4, thank you !!
The text was updated successfully, but these errors were encountered: