mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-17 21:46:36 +00:00
Put leveldb
This commit is contained in:
parent
02acef23d5
commit
67de76c217
2 changed files with 4 additions and 2 deletions
|
|
@ -60,8 +60,8 @@ type Ethereum struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func New(caps Caps, usePnp bool) (*Ethereum, error) {
|
func New(caps Caps, usePnp bool) (*Ethereum, error) {
|
||||||
//db, err := ethdb.NewLDBDatabase()
|
db, err := ethdb.NewLDBDatabase()
|
||||||
db, err := ethdb.NewMemDatabase()
|
//db, err := ethdb.NewMemDatabase()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
peer.go
2
peer.go
|
|
@ -496,6 +496,8 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) {
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
p.CatchupWithPeer()
|
||||||
|
|
||||||
istr = "inbound"
|
istr = "inbound"
|
||||||
} else {
|
} else {
|
||||||
p.CatchupWithPeer()
|
p.CatchupWithPeer()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue