ledgerwatch / erigon-lib

Dependencies of Erigon project, rewritten from scratch and licensed under Apache 2.0
Apache License 2.0
59 stars 85 forks source link

Add addPeer RPC #1033

Closed pcw109550 closed 10 months ago

pcw109550 commented 1 year ago

This PR mirrors https://github.com/testinprod-io/erigon-lib/pull/12.

Library implementation for admin_addPeer method. RPC Spec: Refer to https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-admin.

Requires https://github.com/ledgerwatch/interfaces/pull/174.

After https://github.com/ledgerwatch/interfaces/pull/174 is merged, will update interfaces version, removing replace at go.mod.