aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-01-06 00:48:04 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-01-06 00:48:04 +0800
commit22c0c5465a274cad10367aa3f68ca64bf61e90eb (patch)
tree3738612a86073d159c9da396741fb3d3caa96c3a /cmd
parent2cfbf76db8c505d644f0c40f478973f9a64165fd (diff)
parentec4dee0fcd6cd571ffd146cbebb7367e91457a46 (diff)
downloadgo-tangerine-22c0c5465a274cad10367aa3f68ca64bf61e90eb.tar
go-tangerine-22c0c5465a274cad10367aa3f68ca64bf61e90eb.tar.gz
go-tangerine-22c0c5465a274cad10367aa3f68ca64bf61e90eb.tar.bz2
go-tangerine-22c0c5465a274cad10367aa3f68ca64bf61e90eb.tar.lz
go-tangerine-22c0c5465a274cad10367aa3f68ca64bf61e90eb.tar.xz
go-tangerine-22c0c5465a274cad10367aa3f68ca64bf61e90eb.tar.zst
go-tangerine-22c0c5465a274cad10367aa3f68ca64bf61e90eb.zip
Merge pull request #235 from fjl/rlpdump
fixes for rlpdump
Diffstat (limited to 'cmd')
-rw-r--r--cmd/rlpdump/main.go21
1 files changed, 19 insertions, 2 deletions
diff --git a/cmd/rlpdump/main.go b/cmd/rlpdump/main.go
index 4fb53369a..4c188e179 100644
--- a/cmd/rlpdump/main.go
+++ b/cmd/rlpdump/main.go
@@ -1,7 +1,24 @@
+/*
+ This file is part of go-ethereum
+
+ go-ethereum is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ go-ethereum is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+// rlpdump is a pretty-printer for RLP data.
package main
import (
- "bufio"
"bytes"
"encoding/hex"
"flag"
@@ -49,7 +66,7 @@ func main() {
die(err)
}
defer fd.Close()
- r = bufio.NewReader(fd)
+ r = fd
default:
fmt.Fprintln(os.Stderr, "Error: too many arguments")