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

feat(taiko-client): changes based on Pacaya fork #18746

Open
wants to merge 166 commits into
base: pacaya_fork
Choose a base branch
from

Conversation

davidtaikocha
Copy link
Member

@davidtaikocha davidtaikocha commented Jan 10, 2025

TODO:

Copy link

openzeppelin-code bot commented Jan 10, 2025

feat(taiko-client): changes based on Pacaya fork

Generated at commit: 88a78c5955ce1ce65fc685d7a1971ecc0267f855

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
3
3
0
10
40
56
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

Base automatically changed from pacaya_subblocks to pacaya_fork January 13, 2025 02:41
L1BlockHeight: meta.GetRawBlockHeight(),
L1BlockHash: meta.GetRawBlockHash(),
},
Txs: allTxs[txListCursor : txListCursor+int(blockInfo.NumTransactions)],
Copy link
Contributor

Choose a reason for hiding this comment

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

testing on our Helder devnet, if you submit a garbage block with a calldata txList and a block with numTransactions 1 (but the calldata txList is just garbage), this panics.

panic: runtime error: slice bounds out of range [:1] with capacity 0

goroutine 548 [running]:
github.com/taikoxyz/taiko-mono/packages/taiko-client/driver/chain_syncer/blob/blocks_inserter.(*BlocksInserterPacaya).InsertBlocks(0xc000a02050, {0x284d118, 0xc00052b0e0}, {0x285e560, 0xc0000fc6c8}, 0xc0018f4500, 0xc00052b0e0?)
	/build/packages/taiko-client/driver/chain_syncer/blob/blocks_inserter/pacaya.go:210 +0x1dfe

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed: 8552ab4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants