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

Increase likelihood of generating any transaction data #34

Closed
remoterami opened this issue Oct 6, 2023 · 5 comments
Closed

Increase likelihood of generating any transaction data #34

remoterami opened this issue Oct 6, 2023 · 5 comments

Comments

@remoterami
Copy link

When generating random transactions with livefuzzer spam, I'm having issues generating random transaction data. After changing some logic to skip all the rpc interactions and just let it generate code, it takes multiple minutes to find anything other than 0 bytes of data. I don't think this is intended.. But I could also be missing something of course.

@MariusVanDerWijden
Copy link
Owner

I don't think I understand the issue completely. livefuzzer spam will try to fund ~100 addresses from a faucet in order to send transactions from there. Afterwards transactions will be send by these addresses with fuzzed tx data.

How are you constructing your filler object?

I only ran a quick check to make sure everything works and it kinda looks okay to me

func TestRandomCode(t *testing.T) {
	for i := 0; i < 10; i++ {
		data := make([]byte, 64)
		rand.Read(data)
		f := filler.NewFiller(data)
		fmt.Println(RandomCode(f))
	}
	panic("asdf")
}

@MariusVanDerWijden
Copy link
Owner

Ahh nvm I found the bug, the mutateBytes will not prefill the array, so it is almost completely empty. Will fix, thanks!

@MariusVanDerWijden
Copy link
Owner

fixed by a093b24
Thanks for reporting!

@remoterami
Copy link
Author

Thanks for fixing 👍
Just fyi, looking at it it should be the same for blobs

@MariusVanDerWijden
Copy link
Owner

Thanks, I completely rewrote that part in order to get rid of the code duplication: #37

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

No branches or pull requests

2 participants