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

fix: real-bidder panic #219

Merged
merged 1 commit into from
Jul 11, 2024
Merged

fix: real-bidder panic #219

merged 1 commit into from
Jul 11, 2024

Conversation

mrekucci
Copy link
Collaborator

Fixes the following panic:

panic: invalid argument to Intn

goroutine 34 [running]:
math/rand.(*Rand).Intn(0x120ed60?, 0xc000b88520?)
	/opt/hostedtoolcache/go/1.22.5/x64/src/math/rand/rand.go:180 +0x4c
math/rand.Intn(0x0)
	/opt/hostedtoolcache/go/1.22.5/x64/src/math/rand/rand.go:453 +0x25
main.main.func4(0xc000044ac0, 0xc0000db7a0)
	/home/runner/work/mev-commit/mev-commit/p2p/integrationtest/real-bidder/main.go:233 +0x1e9
created by main.main in goroutine 1
	/home/runner/work/mev-commit/mev-commit/p2p/integrationtest/real-bidder/main.go:217 +0xb08
panic: invalid argument to Intn

goroutine 33 [running]:
math/rand.(*Rand).Intn(0x120ed60?, 0xc0003228e0?)
	/opt/hostedtoolcache/go/1.22.5/x64/src/math/rand/rand.go:180 +0x4c
math/rand.Intn(0x0)
	/opt/hostedtoolcache/go/1.22.5/x64/src/math/rand/rand.go:453 +0x25
main.main.func4(0xc000044ac0, 0xc0000db740)
	/home/runner/work/mev-commit/mev-commit/p2p/integrationtest/real-bidder/main.go:233 +0x1e9
created by main.main in goroutine 1
	/home/runner/work/mev-commit/mev-commit/p2p/integrationtest/real-bidder/main.go:217 +0xb08

@mrekucci mrekucci force-pushed the fix-real-bidder-panic branch 2 times, most recently from dc574de to 53b1601 Compare July 10, 2024 10:53
@mrekucci mrekucci requested review from aloknerurkar and Mikelle July 10, 2024 10:53
@mrekucci mrekucci force-pushed the fix-real-bidder-panic branch from 53b1601 to 6a4d1df Compare July 11, 2024 13:53
@mrekucci mrekucci merged commit b1c7986 into main Jul 11, 2024
5 of 6 checks passed
@mrekucci mrekucci deleted the fix-real-bidder-panic branch July 11, 2024 14:51
mrekucci added a commit that referenced this pull request Jul 15, 2024
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