Skip to content

Fix Satoshi getCurrentValidators when --rpc.gascap=0#67

Merged
zfliex924 merged 2 commits intobranch_v1.0.17from
fix/satoshi_getCurrentValidators
Jun 4, 2025
Merged

Fix Satoshi getCurrentValidators when --rpc.gascap=0#67
zfliex924 merged 2 commits intobranch_v1.0.17from
fix/satoshi_getCurrentValidators

Conversation

@ziogaschr
Copy link
Copy Markdown
Contributor

@ziogaschr ziogaschr commented May 29, 2025

This fixes #65

@ziogaschr ziogaschr requested review from ggcore0 and zfliex924 May 29, 2025 13:36
… global gascap is 0 (#30474)

In #27720, we introduced RPC global gas cap. A value of `0` means an unlimited gas cap. However, this was not the case for simulated calls. This PR fixes the behaviour.
@ziogaschr ziogaschr force-pushed the fix/satoshi_getCurrentValidators branch from 6c98eb0 to 8a369f5 Compare May 29, 2025 15:01
@ziogaschr
Copy link
Copy Markdown
Contributor Author

I force-pushed a change as @ggcore0 found that a similar fix exists on the upstream BSC.

Copy link
Copy Markdown
Contributor

@charles2023wood charles2023wood left a comment

Choose a reason for hiding this comment

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

It's better to fix the same problem in func (api *BlockChainAPI) SimulateV1

@ziogaschr
Copy link
Copy Markdown
Contributor Author

Great catch @charles2023wood

@ziogaschr
Copy link
Copy Markdown
Contributor Author

Done @charles2023wood

@ziogaschr ziogaschr changed the base branch from master to branch_v1.0.17 June 3, 2025 13:30
@zfliex924 zfliex924 merged commit aa68f72 into branch_v1.0.17 Jun 4, 2025
7 of 8 checks passed
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.

Core 1.0.16 Gas errors after update from 1.0.15

5 participants