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

Send raw transaction fix #3037

Merged
merged 5 commits into from
May 4, 2021
Merged

Send raw transaction fix #3037

merged 5 commits into from
May 4, 2021

Conversation

MarekM25
Copy link
Contributor

@MarekM25 MarekM25 commented May 3, 2021

for eth_sendRawTransaction
GETH, OE - don't use additional wrapping
Nethermind and probably Besu, TurboGeth - use additional wrapping.
I'm changing Nethermind to be like Geth/OE

@@ -28,7 +28,10 @@ public enum RlpBehaviors
Storage = 4,
Eip658Receipts = 8,
AllowUnsigned = 16,
ForTreeRoot = 32,
All = AllowExtraData | ForSealing | Storage | Eip658Receipts | AllowUnsigned | ForTreeRoot
SkipTypedWrapping = 32, // introduced after typed transactions. In the network (devp2p) transaction has additional wrapping
Copy link
Member

Choose a reason for hiding this comment

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

Can we have 2 flags there with same value?
SkipTypedWrapping = 32
and
ForTreeRoot = 32

yes they are the same, but intention differs...

Not sure if good idea.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmmm. IMO the intention is the same. We're skipping byte array rlp for typed objects.

Copy link
Member

@LukaszRozmej LukaszRozmej May 4, 2021

Choose a reason for hiding this comment

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

Maybe name it:
ForTreeRoot
ForRpc/FromRpc ?

@MarekM25 MarekM25 merged commit cff76f4 into master May 4, 2021
@MarekM25 MarekM25 deleted the sendRawTransaction_fix branch May 4, 2021 08:17
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.

2 participants