Put leveldb
This commit is contained in:
parent
02acef23d5
commit
67de76c217
@ -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
|
||||
}
|
||||
|
2
peer.go
2
peer.go
@ -496,6 +496,8 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) {
|
||||
}
|
||||
*/
|
||||
|
||||
p.CatchupWithPeer()
|
||||
|
||||
istr = "inbound"
|
||||
} else {
|
||||
p.CatchupWithPeer()
|
||||
|
Loading…
Reference in New Issue
Block a user