aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui/library.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-04-12 01:33:08 +0800
committerMaran <maran.hidskes@gmail.com>2014-04-12 01:33:08 +0800
commit4d18798468c82650ddc809a03a187999f2237813 (patch)
tree65241f493ac0d9c8ce938b0246acabab361f2626 /ethereal/ui/library.go
parentcf1ae41bc0bedeb5208dc00696c538c13f2183c6 (diff)
parent8280dd65e63f5e8abac7ca1c41b337859a40dc49 (diff)
downloaddexon-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.go35
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 {