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

fix: remove unnecessary newRPCTransactionFromBlockHash function[BNB-21] #22

Merged
merged 4 commits into from
Jan 5, 2024

Conversation

welkin22
Copy link
Contributor

Description

remove unnecessary newRPCTransactionFromBlockHash function. use newRPCTransactionFromBlockIndex instead.
Delete the redundant tx parameter of newRPCTransactionFromBlockIndex, which makes the function more difficult to understand.

Rationale

the newRPCTransactionFromBlockHash() function no longer uses the hash parameter, instead, it simply calls the newRPCTransactionFromBlockIndex() function. This renders the newRPCTransactionFromBlockHash() function redundant and confusing, as it is no longer related to "block hash".

Example

none

Changes

Notable changes:

  • remove unnecessary newRPCTransactionFromBlockHash function.
  • Delete the redundant tx parameter of newRPCTransactionFromBlockIndex, which makes the function more difficult to understand.

@owen-reorg owen-reorg marked this pull request as draft November 9, 2023 09:34
@owen-reorg owen-reorg marked this pull request as ready for review November 9, 2023 09:35
@owen-reorg owen-reorg merged commit 0eb8a65 into bnb-chain:develop Jan 5, 2024
1 check passed
sunny2022da pushed a commit to sunny2022da/op-geth that referenced this pull request Aug 6, 2024
* txdag: add excluded flag;
mvstates: generate txdag with excluded flag;

* pevm: support txdag with excluded tx;

* blockchain: opt txdag file mode;

* pevm: fix dispatch bugs;

* pevm: opt txdag dispatch;

---------

Co-authored-by: galaio <[email protected]>
sunny2022da pushed a commit to sunny2022da/op-geth that referenced this pull request Aug 7, 2024
* txdag: add excluded flag;
mvstates: generate txdag with excluded flag;

* pevm: support txdag with excluded tx;

* blockchain: opt txdag file mode;

* pevm: fix dispatch bugs;

* pevm: opt txdag dispatch;

---------

Co-authored-by: galaio <[email protected]>
sunny2022da pushed a commit to sunny2022da/op-geth that referenced this pull request Aug 13, 2024
* txdag: add excluded flag;
mvstates: generate txdag with excluded flag;

* pevm: support txdag with excluded tx;

* blockchain: opt txdag file mode;

* pevm: fix dispatch bugs;

* pevm: opt txdag dispatch;

---------

Co-authored-by: galaio <[email protected]>
sunny2022da pushed a commit to sunny2022da/op-geth that referenced this pull request Sep 25, 2024
* txdag: add excluded flag;
mvstates: generate txdag with excluded flag;

* pevm: support txdag with excluded tx;

* blockchain: opt txdag file mode;

* pevm: fix dispatch bugs;

* pevm: opt txdag dispatch;

---------

Co-authored-by: galaio <[email protected]>
sunny2022da pushed a commit to sunny2022da/op-geth that referenced this pull request Oct 11, 2024
* txdag: add excluded flag;
mvstates: generate txdag with excluded flag;

* pevm: support txdag with excluded tx;

* blockchain: opt txdag file mode;

* pevm: fix dispatch bugs;

* pevm: opt txdag dispatch;

---------

Co-authored-by: galaio <[email protected]>
welkin22 pushed a commit that referenced this pull request Oct 22, 2024
* txdag: add excluded flag;
mvstates: generate txdag with excluded flag;

* pevm: support txdag with excluded tx;

* blockchain: opt txdag file mode;

* pevm: fix dispatch bugs;

* pevm: opt txdag dispatch;

---------

Co-authored-by: galaio <[email protected]>
sunny2022da pushed a commit to sunny2022da/op-geth that referenced this pull request Nov 14, 2024
* txdag: add excluded flag;
mvstates: generate txdag with excluded flag;

* pevm: support txdag with excluded tx;

* blockchain: opt txdag file mode;

* pevm: fix dispatch bugs;

* pevm: opt txdag dispatch;

---------

Co-authored-by: galaio <[email protected]>
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