-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gateway: hardcode response to clientVersion request (#1937)
- Loading branch information
1 parent
5780140
commit a880b16
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package rpcapi | ||
|
||
import ( | ||
"context" | ||
) | ||
|
||
var _hardcodedClientVersion = "Geth/v10.0.0/ten" | ||
|
||
type Web3API struct { | ||
we *Services | ||
} | ||
|
||
func NewWeb3API(we *Services) *Web3API { | ||
return &Web3API{we} | ||
} | ||
|
||
func (api *Web3API) ClientVersion(_ context.Context) (*string, error) { | ||
// todo: have this return the Ten version from the node | ||
return &_hardcodedClientVersion, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters