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
9fb52c51
Commit
9fb52c51
authored
Mar 11, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed V to byte. Closes #456
parent
6af078bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
transaction.go
core/types/transaction.go
+4
-4
No files found.
core/types/transaction.go
View file @
9fb52c51
...
...
@@ -23,7 +23,7 @@ type Transaction struct {
Recipient
[]
byte
Amount
*
big
.
Int
Payload
[]
byte
V
uint64
V
byte
R
,
S
[]
byte
}
...
...
@@ -136,7 +136,7 @@ func (tx *Transaction) Sign(privk []byte) error {
tx
.
R
=
sig
[
:
32
]
tx
.
S
=
sig
[
32
:
64
]
tx
.
V
=
uint64
(
sig
[
64
]
+
27
)
tx
.
V
=
sig
[
64
]
+
27
return
nil
}
...
...
@@ -144,7 +144,7 @@ func (tx *Transaction) Sign(privk []byte) error {
func
(
tx
*
Transaction
)
SetSignatureValues
(
sig
[]
byte
)
error
{
tx
.
R
=
sig
[
:
32
]
tx
.
S
=
sig
[
32
:
64
]
tx
.
V
=
uint64
(
sig
[
64
]
+
27
)
tx
.
V
=
sig
[
64
]
+
27
return
nil
}
...
...
@@ -173,7 +173,7 @@ func (tx *Transaction) RlpValueDecode(decoder *ethutil.Value) {
tx
.
Recipient
=
decoder
.
Get
(
3
)
.
Bytes
()
tx
.
Amount
=
decoder
.
Get
(
4
)
.
BigInt
()
tx
.
Payload
=
decoder
.
Get
(
5
)
.
Bytes
()
tx
.
V
=
decoder
.
Get
(
6
)
.
Uint
()
tx
.
V
=
decoder
.
Get
(
6
)
.
Byte
()
tx
.
R
=
decoder
.
Get
(
7
)
.
Bytes
()
tx
.
S
=
decoder
.
Get
(
8
)
.
Bytes
()
}
...
...
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