Skip to content
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

Merged
merged 1 commit into from
May 24, 2023
Merged

nimbus-verified-proxy integration #3281

merged 1 commit into from
May 24, 2023

Conversation

vitvly
Copy link
Contributor

@vitvly vitvly commented Mar 14, 2023

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.

@vitvly vitvly self-assigned this Mar 14, 2023
@status-github-bot
Copy link

Pull Request Checklist

  • Have you updated the documentation, if impacted (e.g. docs.status.im)?
  • Have you tested changes with mobile?
  • Have you tested changes with desktop?

@status-im-auto
Copy link
Member

status-im-auto commented Mar 14, 2023

Jenkins Builds

Click to see older builds (53)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ cfcc348 #1 2023-03-14 10:27:16 ~2 min linux 📦zip
✔️ cfcc348 #1 2023-03-14 10:28:49 ~3 min android 📦aar
✔️ cfcc348 #1 2023-03-14 10:30:41 ~5 min ios 📦zip
✖️ ba6ec8a #2 2023-04-10 15:17:26 ~35 sec tests 📄log
✔️ ba6ec8a #2 2023-04-10 15:18:12 ~1 min linux 📦zip
✔️ ba6ec8a #2 2023-04-10 15:20:40 ~3 min ios 📦zip
✔️ ba6ec8a #2 2023-04-10 15:21:00 ~4 min android 📦aar
✖️ 98a3ecc #3 2023-04-10 15:23:41 ~36 sec tests 📄log
✔️ 98a3ecc #3 2023-04-10 15:24:03 ~59 sec linux 📦zip
✔️ 98a3ecc #3 2023-04-10 15:25:15 ~2 min ios 📦zip
✔️ 98a3ecc #3 2023-04-10 15:27:21 ~4 min android 📦aar
9b8c77b #4 2023-04-11 10:30:46 ~9.5 sec linux 📄log
✖️ 9b8c77b #4 2023-04-11 10:31:22 ~44 sec tests 📄log
✔️ 9b8c77b #4 2023-04-11 10:32:54 ~2 min ios 📦zip
✔️ 9b8c77b #4 2023-04-11 10:33:31 ~2 min android 📦aar
899fffa #5 2023-04-11 10:38:19 ~21 sec linux 📄log
✖️ 899fffa #5 2023-04-11 10:38:58 ~1 min tests 📄log
✔️ 899fffa #5 2023-04-11 10:40:35 ~2 min ios 📦zip
✔️ 899fffa #5 2023-04-11 10:42:53 ~4 min android 📦aar
cbabc2f #6 2023-05-03 15:23:39 ~1 min linux 📄log
✖️ cbabc2f #6 2023-05-03 15:24:17 ~2 min tests 📄log
✔️ cbabc2f #6 2023-05-03 15:26:44 ~4 min android 📦aar
✔️ cbabc2f #6 2023-05-03 15:30:56 ~8 min ios 📦zip
bb8466e #7 2023-05-08 14:09:39 ~1 min linux 📄log
✖️ bb8466e #7 2023-05-08 14:10:13 ~2 min tests 📄log
✔️ bb8466e #7 2023-05-08 14:11:04 ~3 min ios 📦zip
✔️ bb8466e #7 2023-05-08 14:11:48 ~4 min android 📦aar
9436d56 #8 2023-05-08 14:20:47 ~10 sec ios 📄log
9436d56 #8 2023-05-08 14:20:47 ~11 sec android 📄log
9436d56 #8 2023-05-08 14:20:51 ~11 sec linux 📄log
✖️ 9436d56 #8 2023-05-08 14:22:45 ~2 min tests 📄log
✔️ 1ace3ad #9 2023-05-08 14:32:17 ~4 min ios 📦zip
✔️ 1ace3ad #9 2023-05-08 14:32:57 ~5 min linux 📦zip
✔️ 1ace3ad #9 2023-05-08 14:34:51 ~7 min android 📦aar
✔️ 1ace3ad #9 2023-05-08 14:40:42 ~12 min tests 📄log
f5d1821 #10 2023-05-16 15:18:25 ~50 sec linux 📄log
✖️ f5d1821 #10 2023-05-16 15:18:31 ~55 sec tests 📄log
✔️ f5d1821 #10 2023-05-16 15:21:59 ~4 min android 📦aar
✔️ f5d1821 #10 2023-05-16 15:22:28 ~4 min ios 📦zip
✔️ 40a6268 #11 2023-05-16 15:25:34 ~2 min ios 📦zip
✔️ 40a6268 #11 2023-05-16 15:28:13 ~6 min linux 📦zip
✔️ 40a6268 #11 2023-05-16 15:28:50 ~6 min android 📦aar
✖️ 40a6268 #11 2023-05-16 15:49:21 ~27 min tests 📄log
✔️ afe9924 #12 2023-05-17 15:29:25 ~2 min linux 📦zip
✔️ afe9924 #12 2023-05-17 15:29:57 ~3 min ios 📦zip
✔️ afe9924 #12 2023-05-17 15:30:37 ~3 min android 📦aar
✔️ afe9924 #12 2023-05-17 15:39:08 ~12 min tests 📄log
✔️ b7dbca9 #13 2023-05-17 15:31:28 ~1 min linux 📦zip
✔️ b7dbca9 #13 2023-05-17 15:33:03 ~3 min ios 📦zip
✔️ 3d45661 #14 2023-05-17 15:33:51 ~2 min linux 📦zip
✔️ 3d45661 #13 2023-05-17 15:34:17 ~3 min android 📦aar
✔️ 3d45661 #14 2023-05-17 15:37:22 ~4 min ios 📦zip
✔️ 3d45661 #13 2023-05-17 15:48:54 ~9 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 81c868b #15 2023-05-17 16:17:38 ~2 min linux 📦zip
✔️ 81c868b #15 2023-05-17 16:18:58 ~3 min ios 📦zip
✔️ 81c868b #14 2023-05-17 16:19:28 ~4 min android 📦aar
✔️ 81c868b #14 2023-05-17 16:27:11 ~11 min tests 📄log
✔️ f64c13c #16 2023-05-24 13:47:17 ~2 min linux 📦zip
✔️ f64c13c #16 2023-05-24 13:49:10 ~4 min ios 📦zip
✔️ f64c13c #15 2023-05-24 13:49:20 ~4 min android 📦aar
✔️ f64c13c #15 2023-05-24 13:57:48 ~12 min tests 📄log

c.RegisterHandler(
params.BalanceMethodName,
func(ctx context.Context, v uint64, params ...interface{}) (interface{}, error) {
fmt.Println("### inside registered handler")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

println


func NewVerifProxy(cfg *proxy.Config) *VerifProxy {
endpoint := "http://" + cfg.RpcAddress + ":" + fmt.Sprint(cfg.RpcPort)
fmt.Println("### NewVerifProxy: ", endpoint)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

println

var result hexutil.Big
err := p.client.CallContext(ctx, &result, "eth_getBalance", address, "latest")
if err != nil {
fmt.Println("### IN GetBalance, error ", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use logger

@vitvly vitvly force-pushed the lc-proxy branch 3 times, most recently from 3d45661 to 81c868b Compare May 17, 2023 16:15
@vitvly
Copy link
Contributor Author

vitvly commented May 17, 2023

Thanks @cammellos

  • comments removed
  • used Client's logger
  • removed superfluous Makefile lines

"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"
Copy link
Member

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.

Comment on lines +7 to +16
"context"
"fmt"
"os"
"os/signal"
"syscall"
"testing"
"time"

"net/http"
"net/http/httptest"
Copy link
Member

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

Copy link
Member

@Samyoul Samyoul left a 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

@vitvly
Copy link
Contributor Author

vitvly commented May 24, 2023

Thank you @Samyoul , done.

@vitvly vitvly merged commit ddfd0c5 into develop May 24, 2023
@vitvly vitvly deleted the lc-proxy branch May 24, 2023 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants