diff options
author | Maran <maran.hidskes@gmail.com> | 2014-04-12 01:33:08 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-04-12 01:33:08 +0800 |
commit | 4d18798468c82650ddc809a03a187999f2237813 (patch) | |
tree | 65241f493ac0d9c8ce938b0246acabab361f2626 /ethereal/ui/library.go | |
parent | cf1ae41bc0bedeb5208dc00696c538c13f2183c6 (diff) | |
parent | 8280dd65e63f5e8abac7ca1c41b337859a40dc49 (diff) | |
download | dexon-4d18798468c82650ddc809a03a187999f2237813.tar dexon-4d18798468c82650ddc809a03a187999f2237813.tar.gz dexon-4d18798468c82650ddc809a03a187999f2237813.tar.bz2 dexon-4d18798468c82650ddc809a03a187999f2237813.tar.lz dexon-4d18798468c82650ddc809a03a187999f2237813.tar.xz dexon-4d18798468c82650ddc809a03a187999f2237813.tar.zst dexon-4d18798468c82650ddc809a03a187999f2237813.zip |
Fix merge conflicts
Diffstat (limited to 'ethereal/ui/library.go')
-rw-r--r-- | ethereal/ui/library.go | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/ethereal/ui/library.go b/ethereal/ui/library.go index d4800bf1d..08f99e7db 100644 --- a/ethereal/ui/library.go +++ b/ethereal/ui/library.go @@ -94,41 +94,6 @@ func (lib *EthLib) CreateTx(recipient, valueStr, gasStr, gasPriceStr, data strin return ethutil.Hex(tx.Hash()), nil } -/* -func (lib *EthLib) CreateTx(receiver, a, data string) string { - var hash []byte - if len(receiver) == 0 { - hash = ethchain.ContractAddr - } else { - var err error - hash, err = hex.DecodeString(receiver) - if err != nil { - return err.Error() - } - } - - k, _ := ethutil.Config.Db.Get([]byte("KeyRing")) - keyPair := ethutil.NewKeyFromBytes(k) - - amount := ethutil.Big(a) - code := ethchain.Compile(strings.Split(data, "\n")) - tx := ethchain.NewTx(hash, amount, code) - tx.Nonce = lib.stateManager.GetAddrState(keyPair.Address()).Nonce - - tx.Sign(keyPair.PrivateKey) - - lib.txPool.QueueTransaction(tx) - - if len(receiver) == 0 { - ethutil.Config.Log.Infof("Contract addr %x", tx.Hash()[12:]) - } else { - ethutil.Config.Log.Infof("Tx hash %x", tx.Hash()) - } - - return ethutil.Hex(tx.Hash()) -} -*/ - func (lib *EthLib) GetBlock(hexHash string) *Block { hash, err := hex.DecodeString(hexHash) if err != nil { |