Skip to content

Conversation

@Frozen
Copy link
Collaborator

@Frozen Frozen commented Jun 21, 2024

  1. Block proposing uses 99% consensus and 1% node code, but it is located within the node.
  2. The chained protocol requires block proposing from consensus, causing a circular dependency error.

@Frozen Frozen self-assigned this Jun 21, 2024
@sophoah sophoah requested a review from GheisMohammadi June 24, 2024 03:41
func GetPendingCXKey(shardID uint32, blockNum uint64) string {
key := strconv.FormatUint(uint64(shardID), 10) + "-" + strconv.FormatUint(blockNum, 10)
return key
func GetPendingCXKey(shardID uint32, blockNum uint64) CXKey {
Copy link
Contributor

Choose a reason for hiding this comment

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

can the difference of key format returned cause any issue in our codebase calling that function ?

Copy link
Collaborator Author

@Frozen Frozen Jun 24, 2024

Choose a reason for hiding this comment

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

Cache keeped only in the memory, so, restart will erase everything.
Exactly in this case, we have 4 memory allocations for no reason. My version has no allocations.

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

Successfully merging this pull request may close these issues.

5 participants