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

[Non-breaking changes] Move Message struct from types to core package #367

Closed
wants to merge 8 commits into from
Closed

Conversation

trinhdn2
Copy link

Reference:

Checklist:

  • Encapsulate all the Message related structures & abstractions within a single package (core). Previously it was leaking into core/types/Transaction.go, most of whose users have no need for it
  • Fix some minor unit tests

@tungng98 tungng98 added the non-breaking Enhancement that doesn't need a hardfork label Jul 16, 2023
core/headerchain.go Outdated Show resolved Hide resolved
core/headerchain.go Outdated Show resolved Hide resolved
core/headerchain.go Outdated Show resolved Hide resolved
@@ -517,7 +515,6 @@ func InitSignerInTransactions(config *params.ChainConfig, header *types.Header,
go func(from int, to int) {
for j := from; j < to; j++ {
types.CacheSigner(signer, txs[j])
Copy link
Collaborator

@imterryyy imterryyy Jul 18, 2023

Choose a reason for hiding this comment

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

Keep cache hash for Tx

Suggested change
types.CacheSigner(signer, txs[j])
types.CacheSigner(signer, txs[j])
txs[j].CacheHash()

Copy link
Author

Choose a reason for hiding this comment

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

Re-added the CacheHash, PTAL

Copy link
Collaborator

@imterryyy imterryyy left a comment

Choose a reason for hiding this comment

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

LGTM

@tungng98 tungng98 deleted the branch BuildOnViction:upgrade-core-develop December 10, 2023 16:51
@tungng98 tungng98 closed this Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non-breaking Enhancement that doesn't need a hardfork
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants