aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-12 07:26:40 +0800
committerobscuren <geffobscura@gmail.com>2015-03-12 07:26:40 +0800
commit7ee5cb0a81f9ccc0efec2a5bf830c7566f3289ad (patch)
treebe71b38f179f61b1941771a0ecaa2555105acc24 /core
parent70f6f2af07b3f3a4d848190525e50f3327acb2c7 (diff)
parent9fb52c517beda2422920eb5b265a0f714d59c39a (diff)
downloadgo-tangerine-7ee5cb0a81f9ccc0efec2a5bf830c7566f3289ad.tar
go-tangerine-7ee5cb0a81f9ccc0efec2a5bf830c7566f3289ad.tar.gz
go-tangerine-7ee5cb0a81f9ccc0efec2a5bf830c7566f3289ad.tar.bz2
go-tangerine-7ee5cb0a81f9ccc0efec2a5bf830c7566f3289ad.tar.lz
go-tangerine-7ee5cb0a81f9ccc0efec2a5bf830c7566f3289ad.tar.xz
go-tangerine-7ee5cb0a81f9ccc0efec2a5bf830c7566f3289ad.tar.zst
go-tangerine-7ee5cb0a81f9ccc0efec2a5bf830c7566f3289ad.zip
Merge branch 'develop' into rpcfrontier
Diffstat (limited to 'core')
-rw-r--r--core/types/transaction.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go
index 7d34c86f4..88a718f93 100644
--- a/core/types/transaction.go
+++ b/core/types/transaction.go
@@ -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()
}