diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-12 03:09:58 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-12 03:09:58 +0800 |
commit | 67de76c217f4ff4f2111e5f578b35fb162d64916 (patch) | |
tree | 3d90db375db840f343d7cc566cd45f238098ebe7 | |
parent | 02acef23d595dc2bc95295bab63658addf664aaf (diff) | |
download | go-tangerine-67de76c217f4ff4f2111e5f578b35fb162d64916.tar go-tangerine-67de76c217f4ff4f2111e5f578b35fb162d64916.tar.gz go-tangerine-67de76c217f4ff4f2111e5f578b35fb162d64916.tar.bz2 go-tangerine-67de76c217f4ff4f2111e5f578b35fb162d64916.tar.lz go-tangerine-67de76c217f4ff4f2111e5f578b35fb162d64916.tar.xz go-tangerine-67de76c217f4ff4f2111e5f578b35fb162d64916.tar.zst go-tangerine-67de76c217f4ff4f2111e5f578b35fb162d64916.zip |
Put leveldb
-rw-r--r-- | ethereum.go | 4 | ||||
-rw-r--r-- | peer.go | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ethereum.go b/ethereum.go index 6ace58308..c9da24bcf 100644 --- a/ethereum.go +++ b/ethereum.go @@ -60,8 +60,8 @@ type Ethereum struct { } func New(caps Caps, usePnp bool) (*Ethereum, error) { - //db, err := ethdb.NewLDBDatabase() - db, err := ethdb.NewMemDatabase() + db, err := ethdb.NewLDBDatabase() + //db, err := ethdb.NewMemDatabase() if err != nil { return nil, err } @@ -496,6 +496,8 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) { } */ + p.CatchupWithPeer() + istr = "inbound" } else { p.CatchupWithPeer() |