aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-24 19:48:33 +0800
committerobscuren <geffobscura@gmail.com>2014-04-24 19:48:33 +0800
commitf3818478e2601df1d9cfc9cc36b021366f870856 (patch)
tree693ac4ed03142a92a863c08237526bb8f11e3539 /ethchain
parentee7c16a8d977389c63ef60ea6c5eaff11e150ca4 (diff)
downloadgo-tangerine-f3818478e2601df1d9cfc9cc36b021366f870856.tar
go-tangerine-f3818478e2601df1d9cfc9cc36b021366f870856.tar.gz
go-tangerine-f3818478e2601df1d9cfc9cc36b021366f870856.tar.bz2
go-tangerine-f3818478e2601df1d9cfc9cc36b021366f870856.tar.lz
go-tangerine-f3818478e2601df1d9cfc9cc36b021366f870856.tar.xz
go-tangerine-f3818478e2601df1d9cfc9cc36b021366f870856.tar.zst
go-tangerine-f3818478e2601df1d9cfc9cc36b021366f870856.zip
Removed debug & unused functions
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/block.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/ethchain/block.go b/ethchain/block.go
index c9197c69a..d95ebf4b5 100644
--- a/ethchain/block.go
+++ b/ethchain/block.go
@@ -116,11 +116,6 @@ func (block *Block) HashNoNonce() []byte {
return ethutil.Sha3Bin(ethutil.Encode([]interface{}{block.PrevHash, block.UncleSha, block.Coinbase, block.state.trie.Root, block.TxSha, block.Difficulty, block.Time, block.Extra}))
}
-func (block *Block) PrintHash() {
- fmt.Println(block)
- fmt.Println(ethutil.NewValue(ethutil.Encode([]interface{}{block.PrevHash, block.UncleSha, block.Coinbase, block.state.trie.Root, block.TxSha, block.Difficulty, block.Time, block.Extra, block.Nonce})))
-}
-
func (block *Block) State() *State {
return block.state
}
@@ -182,26 +177,6 @@ func (block *Block) MakeContract(tx *Transaction) {
}
/////// Block Encoding
-func (block *Block) encodedUncles() interface{} {
- uncles := make([]interface{}, len(block.Uncles))
- for i, uncle := range block.Uncles {
- uncles[i] = uncle.RlpEncode()
- }
-
- return uncles
-}
-
-func (block *Block) encodedTxs() interface{} {
- // Marshal the transactions of this block
- encTx := make([]interface{}, len(block.transactions))
- for i, tx := range block.transactions {
- // Cast it to a string (safe)
- encTx[i] = tx.RlpData()
- }
-
- return encTx
-}
-
func (block *Block) rlpTxs() interface{} {
// Marshal the transactions of this block
encTx := make([]interface{}, len(block.transactions))