-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
Closes #18 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor nits that I'd like you to fix, but overall, this looks good.
src/builder_state.rs
Outdated
<<TYPES as BuilderType>::SignatureKey as SignatureKey>::PureAssembledSignatureType, | ||
pub sender: TYPES::SignatureKey, | ||
pub metadata: <<TYPES as NodeType>::BlockPayload as BlockPayload>::Metadata, | ||
pub join_handle: Arc<JoinHandle<<VidScheme as VidSchemeTrait>::Commit>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couldn't this just be Arc<JoinHandle<vid::VidCommitment>>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/builder_state.rs
Outdated
// convert vid_num_nodes to usize | ||
// spawn a task to calculate the VID commitment, and pass the builder handle to the global state | ||
// later global state can await on it before replying to the proposer | ||
let join_handle: JoinHandle<<VidScheme as VidSchemeTrait>::Commit> = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't need to be explicitly typed...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/service.rs
Outdated
pub tx_sender: BroadcastSender<MessageType<Types>>, | ||
|
||
// sending a DA proposal from the hotshot to the builder states | ||
pub da_sender: BroadcastSender<MessageType<Types>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have these, other than the tx_sender?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since global state
implements hotshot events stream service
aka run_standalone_builder_service now. Should we take hotshot events stream service
out from global state and keep it as separate function as earlier?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will also help in spawning a task based on this standalone function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But we need tx_sender
in the Global State to implement submit_txn
for txn submit api.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think the comments in block_hash_to_block's tuple can be removed, but otherwise, this looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
To accomodate new changes in
hs-builder-api
.claim_block_header_input
api.cliam_block_header_input
. It sort of replaces the earliervid_desperssal
handle.