aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-12 07:18:03 +0800
committerobscuren <geffobscura@gmail.com>2015-03-12 07:18:03 +0800
commit9fb52c517beda2422920eb5b265a0f714d59c39a (patch)
tree50893ef111ccf2285ff7eb9b3dfc8772e41eae90 /core
parent6af078bd8c9451f9c12cab371bf7bd2569f575a3 (diff)
downloadgo-tangerine-9fb52c517beda2422920eb5b265a0f714d59c39a.tar.gz
go-tangerine-9fb52c517beda2422920eb5b265a0f714d59c39a.tar.zst
go-tangerine-9fb52c517beda2422920eb5b265a0f714d59c39a.zip
Changed V to byte. Closes #456
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()
}
'>2013-12-261-3/+2 * - Turn BROKEN into ONLY_FOR_ARCHSamdmi32013-12-211-6/+4 * - Update to 94.1amdmi32013-12-1634-292/+590 * Convert LIB_DEPENDS for ports depending on boostbapt2013-12-121-6/+6 * - Fix CMAKE_BUILD_TYPE usagemakc2013-12-031-1/+2 * Deprecated ports broken for more than 6 monthbapt2013-11-221-0/+3 * - Remove manual creation and removal of share/applications, as it's now in th...amdmi32013-10-221-1/+0 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - Remove MAKE_JOBS_SAFE variableak2013-08-151-1/+0 * - Trim Makefile headersamdmi32013-07-121-6/+6 * - convert USE_CMAKE to USESmakc2013-03-231-1/+1 * Chase boost updatebapt2013-01-311-5/+3 * libogg.so.8: Bump PORTREVISION for ports that depend on libogg,naddy2012-07-201-2/+2 * - update png to 1.5.10dinoex2012-06-011-1/+1 * - Update devel/sdl12 to 1.2.15mva2012-02-181-0/+1