-
Notifications
You must be signed in to change notification settings - Fork 249
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
nimbus-verified-proxy integration #3281
Conversation
Pull Request Checklist
|
Jenkins BuildsClick to see older builds (53)
|
9436d56
to
1ace3ad
Compare
f5d1821
to
40a6268
Compare
rpc/verif_proxy.go
Outdated
c.RegisterHandler( | ||
params.BalanceMethodName, | ||
func(ctx context.Context, v uint64, params ...interface{}) (interface{}, error) { | ||
fmt.Println("### inside registered handler") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
println
rpc/verif_proxy.go
Outdated
|
||
func NewVerifProxy(cfg *proxy.Config) *VerifProxy { | ||
endpoint := "http://" + cfg.RpcAddress + ":" + fmt.Sprint(cfg.RpcPort) | ||
fmt.Println("### NewVerifProxy: ", endpoint) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
println
rpc/verif_proxy.go
Outdated
var result hexutil.Big | ||
err := p.client.CallContext(ctx, &result, "eth_getBalance", address, "latest") | ||
if err != nil { | ||
fmt.Println("### IN GetBalance, error ", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use logger
3d45661
to
81c868b
Compare
Thanks @cammellos
|
"github.com/ethereum/go-ethereum/common/hexutil" | ||
"github.com/ethereum/go-ethereum/log" | ||
gethrpc "github.com/ethereum/go-ethereum/rpc" | ||
proxy "github.com/siphiuel/lc-proxy-wrapper" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a chance that this line will give a lint error as your own repos would be considered 3rd party and should be grouped with other 3rd party packages.
"context" | ||
"fmt" | ||
"os" | ||
"os/signal" | ||
"syscall" | ||
"testing" | ||
"time" | ||
|
||
"net/http" | ||
"net/http/httptest" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are all std lib packages so can be grouped together
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, nice work.
Two minor points:
- don't forget to bump VERSION
- do you need to run
make vendor
? Because I see dependency changes but no change to the vendor directory
Thank you @Samyoul , done. |
Tracking issue: #3282
status-go code depends on an external repo -
lc-proxy-wrapper
, that provides functions wrapping actual nimbus-eth1 code. Relevant functionality is toggled by a build tag.