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

chore(*): run multiple validators #19

Merged
merged 4 commits into from
Nov 8, 2024
Merged

chore(*): run multiple validators #19

merged 4 commits into from
Nov 8, 2024

Conversation

Lazar955
Copy link
Member

@Lazar955 Lazar955 commented Nov 7, 2024

In order to better simulate the real world, we will use one validator for all RPC queries and the other one for submitting delegations

@@ -83,7 +83,7 @@ func startHarness(cmdCtx context.Context, cfg config.Config) error {

var stakers []*BTCStaker
for i := 0; i < numStakers; i++ {
stakerSender, err := NewSenderWithBabylonClient(ctx, fmt.Sprintf("staker-%d", i), tm.Config.Babylon.RPCAddr, tm.Config.Babylon.GRPCAddr)
stakerSender, err := NewSenderWithBabylonClient(ctx, fmt.Sprintf("staker-%d", i), tm.Config.Babylon1.RPCAddr, tm.Config.Babylon1.GRPCAddr)
Copy link
Member Author

Choose a reason for hiding this comment

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

we use node1 for submitting delegations

Copy link
Contributor

@KonradStaniec KonradStaniec left a comment

Choose a reason for hiding this comment

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

code lgtm! I am running local test of this setup rn

@Lazar955 Lazar955 merged commit 620261e into main Nov 8, 2024
6 checks passed
@Lazar955 Lazar955 deleted the lazar/multi-validator branch November 8, 2024 09:35
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.

2 participants