mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-02 09:33:46 +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) {
|
||||
//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 a new issue