refac: remove conditional compilation over DA types#501
Conversation
b559abe to
ef59271
Compare
ef59271 to
4b8d6f0
Compare
05be1c3 to
d9a7e16
Compare
ffdac10 to
7e51ff1
Compare
ratankaliani
left a comment
There was a problem hiding this comment.
get_proof_stdin should not be async
e83330c to
45c6479
Compare
Performance ComparisonRange 2071356~2071361
|
There was a problem hiding this comment.
The recent changes to kona definitely simplified the diff. Have a few points which should be addressed before merging.
- Without a
celestiafeature on the proposer, how will the host be initialized with theCelestiaHost. IIUC you need thecelestiafeature on the proposer to activate the feature onop-succinct-proof-utilswhich activates thecelestiahost. - The
WitnessExecutorimplementations can likely share more code. - Is there a way to avoid the marker on the
WitnessExecutortrait? That null pattern is typically an anti-pattern. - Left some comments about propagating errors when possible using
?, rather than unwrapping.
As replied above, no need to declare features of op-succinct-proof-utils. Passing in feature flag will enable feature in op-succinct-proof-utils.
Not sure if this can be done without feature flags.
The only alternative would be to store actual fields of these types, but there are two structs
Applied! |
Removes conditional compilation over DA types by introducing
WitnessData,WitnessExecutor,WitnessGeneratortrait, ethereum and celestia modules.