Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
10d9f937
Unverified
Commit
10d9f937
authored
1 year ago
by
Delweng
Committed by
GitHub
1 year ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
graphql: add yParity field for transactions (#27882)
Co-authored-by:
Felix Lange
<
fjl@twurst.com
>
parent
7ec60d5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
graphql.go
graphql/graphql.go
+10
-0
schema.go
graphql/schema.go
+1
-0
No files found.
graphql/graphql.go
View file @
10d9f937
...
...
@@ -566,6 +566,16 @@ func (t *Transaction) V(ctx context.Context) hexutil.Big {
return
hexutil
.
Big
(
*
v
)
}
func
(
t
*
Transaction
)
YParity
(
ctx
context
.
Context
)
(
*
hexutil
.
Uint64
,
error
)
{
tx
,
_
:=
t
.
resolve
(
ctx
)
if
tx
==
nil
||
tx
.
Type
()
==
types
.
LegacyTxType
{
return
nil
,
nil
}
v
,
_
,
_
:=
tx
.
RawSignatureValues
()
ret
:=
hexutil
.
Uint64
(
v
.
Int64
())
return
&
ret
,
nil
}
func
(
t
*
Transaction
)
Raw
(
ctx
context
.
Context
)
(
hexutil
.
Bytes
,
error
)
{
tx
,
_
:=
t
.
resolve
(
ctx
)
if
tx
==
nil
{
...
...
This diff is collapsed.
Click to expand it.
graphql/schema.go
View file @
10d9f937
...
...
@@ -151,6 +151,7 @@ const schema string = `
r: BigInt!
s: BigInt!
v: BigInt!
yParity: Long
# Envelope transaction support
type: Long
accessList: [AccessTuple!]
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment