aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/transaction.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-28 05:02:39 +0800
committerobscuren <geffobscura@gmail.com>2014-03-28 05:02:39 +0800
commit56a58ad70db22b0714a8f81fe31eaedc2a1e8e0d (patch)
tree4f7683be6e282e4b30f116c6f4ff4af99d45938e /ethchain/transaction.go
parent00c5f9b9a67a6ab6f2850b756804dfa6efd8a824 (diff)
downloaddexon-56a58ad70db22b0714a8f81fe31eaedc2a1e8e0d.tar.gz
dexon-56a58ad70db22b0714a8f81fe31eaedc2a1e8e0d.tar.zst
dexon-56a58ad70db22b0714a8f81fe31eaedc2a1e8e0d.zip
Removed debug and comments
Diffstat (limited to 'ethchain/transaction.go')
-rw-r--r--ethchain/transaction.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/ethchain/transaction.go b/ethchain/transaction.go
index d71f9c7f7..af27fe639 100644
--- a/ethchain/transaction.go
+++ b/ethchain/transaction.go
@@ -2,7 +2,6 @@ package ethchain
import (
"bytes"
- "fmt"
"github.com/ethereum/eth-go/ethutil"
"github.com/obscuren/secp256k1-go"
"math/big"
@@ -134,10 +133,7 @@ func (tx *Transaction) RlpDecode(data []byte) {
tx.RlpValueDecode(ethutil.NewValueFromBytes(data))
}
-// [ NONCE, VALUE, GASPRICE, TO, GAS, DATA, V, R, S ]
-//["" "\x03\xe8" "" "\xaa" "\x03\xe8" [] '\x1c' "\x10C\x15\xfc\xe5\xd0\t\xe4\r\xe7\xefa\xf5aE\xd6\x14\xaed\xb5.\xf5\x18\xa1S_j\xe0A\xdc5U" "dQ\nqy\xf8\x17+\xbf\xd7Jx\xda-\xcb\xd7\xcfQ\x1bI\xb8_9\b\x80\xea듎i|\x1f"]
func (tx *Transaction) RlpValueDecode(decoder *ethutil.Value) {
- fmt.Println(decoder)
tx.Nonce = decoder.Get(0).Uint()
tx.Value = decoder.Get(1).BigInt()
tx.Gasprice = decoder.Get(2).BigInt()
@@ -170,19 +166,4 @@ func (tx *Transaction) RlpValueDecode(decoder *ethutil.Value) {
tx.r = decoder.Get(7).Bytes()
tx.s = decoder.Get(8).Bytes()
}
- /*
- tx.Nonce = decoder.Get(0).Uint()
- tx.Recipient = decoder.Get(1).Bytes()
- tx.Value = decoder.Get(2).BigInt()
-
- d := decoder.Get(3)
- tx.Data = make([]string, d.Len())
- for i := 0; i < d.Len(); i++ {
- tx.Data[i] = d.Get(i).Str()
- }
-
- tx.v = byte(decoder.Get(4).Uint())
- tx.r = decoder.Get(5).Bytes()
- tx.s = decoder.Get(6).Bytes()
- */
}