aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-12 03:09:58 +0800
committerobscuren <geffobscura@gmail.com>2014-02-12 03:09:58 +0800
commit67de76c217f4ff4f2111e5f578b35fb162d64916 (patch)
tree3d90db375db840f343d7cc566cd45f238098ebe7
parent02acef23d595dc2bc95295bab63658addf664aaf (diff)
downloadgo-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.go4
-rw-r--r--peer.go2
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
}
diff --git a/peer.go b/peer.go
index 5bfec1758..3c36dfc58 100644
--- a/peer.go
+++ b/peer.go
@@ -496,6 +496,8 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) {
}
*/
+ p.CatchupWithPeer()
+
istr = "inbound"
} else {
p.CatchupWithPeer()