func NewInMemoryDB() *InMemoryDB {
	return &InMemoryDB{
		DB:            make(map[chainhash.Hash]primitives.Block),
		AttestationDB: make(map[uint32]primitives.Attestation),
		blockNodes:    make(map[chainhash.Hash]BlockNodeDisk),
		statemap:      make(map[chainhash.Hash]primitives.State),
		lock:          new(sync.Mutex),
	}
}
// NewInMemoryDB initializes a new in-memory DB
NewInMemoryDB initializes a new in-memory DB
// NewInMemoryDB initializes a new in - memory DB
func NewInMemoryDB() *InMemoryDB {
	return &InMemoryDB{
		DB:            make(map[chainhash.Hash]primitives.Block),
		AttestationDB: make(map[uint32]primitives.Attestation),
		blockNodes:    make(map[chainhash.Hash]BlockNodeDisk),
		statemap:      make(map[chainhash.Hash]primitives.State),
		lock:          new(sync.Mutex),
	}
}
func NewInMemoryDB ( ) * InMemoryDB { return & InMemoryDB { DB : make ( map [ chainhash . Hash ] primitives . Block ) , AttestationDB : make ( map [ uint32 ] primitives . Attestation ) , blockNodes : make ( map [ chainhash . Hash ] BlockNodeDisk ) , statemap : make ( map [ chainhash . Hash ] primitives . State ) , lock : new ( sync . Mutex ) , } }
NewInMemoryDB initializes a new in-memory DB
NewInMemoryDB initializes a new in - memory DB