You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Root cause — MinerAPI.SetGasLimit(gasLimit hexutil.Uint64) bool declares its parameter with the modern hexutil.Uint64 hex-quantity wrapper — a non-pointer, always-required value type — and forwards the converted uint64 straight into Miner.SetGasCeil. No *rpc.HexNumber type (the older, pointer-based legacy hex-number wrapper) appears in the handler; the documented signature is a stale reference to that superseded type rather than the one actually registered for this RPC method.
Method: miner_setGasLimit
2. miner_setGasPrice: miner_setGasPrice takes hexutil.Big rather than the documented number *rpc.HexNumber signature
Statement: miner_setGasPrice takes hexutil.Big rather than the documented number *rpc.HexNumber signature.
Description: Root cause — MinerAPI.SetGasPrice(gasPrice hexutil.Big) bool declares its parameter as hexutil.Big, whose UnmarshalText/hex-string decoding builds an arbitrary-precision big.Int (needed because gas price can exceed 64 bits), and the value is applied directly to both the transaction pool's and the miner's gas-tip settings. As with SetGasLimit, the legacy *rpc.HexNumber pointer type named in the documentation does not appear anywhere in this call path — it was replaced by hexutil.Big without the documentation being updated.
1.
miner_setGasLimit:miner_setGasLimittakeshexutil.Uint64rather than the documentednumber *rpc.HexNumbersignatureminer_setGasLimittakeshexutil.Uint64rather than the documentednumber *rpc.HexNumbersignature.eth/api_miner.go:55-58—go-ethereum/eth/api_miner.go
Lines 55 to 58 in 81ab8b5
miner/miner.go:124-128—go-ethereum/miner/miner.go
Lines 124 to 128 in 81ab8b5
MinerAPI.SetGasLimit(gasLimit hexutil.Uint64) booldeclares its parameter with the modernhexutil.Uint64hex-quantity wrapper — a non-pointer, always-required value type — and forwards the converteduint64straight intoMiner.SetGasCeil. No*rpc.HexNumbertype (the older, pointer-based legacy hex-number wrapper) appears in the handler; the documented signature is a stale reference to that superseded type rather than the one actually registered for this RPC method.miner_setGasLimit2.
miner_setGasPrice:miner_setGasPricetakeshexutil.Bigrather than the documentednumber *rpc.HexNumbersignatureminer_setGasPricetakeshexutil.Bigrather than the documentednumber *rpc.HexNumbersignature.eth/api_miner.go:44-52—go-ethereum/eth/api_miner.go
Lines 44 to 52 in 81ab8b5
common/hexutil/json.go:171-188—go-ethereum/common/hexutil/json.go
Lines 171 to 188 in 81ab8b5
MinerAPI.SetGasPrice(gasPrice hexutil.Big) booldeclares its parameter ashexutil.Big, whoseUnmarshalText/hex-string decoding builds an arbitrary-precisionbig.Int(needed because gas price can exceed 64 bits), and the value is applied directly to both the transaction pool's and the miner's gas-tip settings. As withSetGasLimit, the legacy*rpc.HexNumberpointer type named in the documentation does not appear anywhere in this call path — it was replaced byhexutil.Bigwithout the documentation being updated.miner_setGasPrice