feat: taiyi-challenger implementation#591
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Hey i'm not sure whether there is a concurrency issue here, among the two tasks But I think I see a sequential dependency among the challenge creation -> challenge submission:
What if a new block is published, and the If that's the case, then instead of the I might be missing something but I've read the code a few times and i still haven't convinced myself of the opposite |
|
@umbertov Hi, I checked your comments and I don't think this would cause any issues. Main reason is the following line:
|
|
@martines3000 i see: the challenge is submitted at a later slot wrt to the challenge creation, hence there is no problem. thanks for the answer, i didn't notice that |
|
@martines3000 Could you fix the lint? |
chirag-bgh
left a comment
There was a problem hiding this comment.
Just a few nits.
Need to figure out the e2e-tests for this
|
@chirag-bgh I resolved the mentioned nits. Let me know if you find anything else that needs changing 👍. In the meantime I will do the same improvements (extracting functions out from the |
chirag-bgh
left a comment
There was a problem hiding this comment.
Left some more comments, some refactoring stuffs
|
@martines3000 Could you also add some tests for the databse related methods? |
|
@martines3000 Thanks for the uts, there's a conflict needed to be resolved. |
I will resolve it. I am also preparing some unit tests for the db write/read. Should be finished soon (1h max) |
|
@chirag-bgh Ok, I resolved the conflicts and added some basic unit tests for the DB read/writes. |
Implemented/Updated:
TaiyiChallengerMissing:
TaiyiChallenger(missing deployment scripts)Open questions:
underwriterSignedBlockspaceAllocationandunderwriterSignedRawTxare not needed for opening a challenge as we only use the commitment signature and fields necessary to recover the signer address.Todo: