erigon-pulse/ethdb/id.go
Evgeny Danilenko 5b4f352acb
Restore Ethash mining (#231)
* initial

* mining

* remove debug

* debug

* restore random seed in the mining tests

* green tests

* fix blockchain tests

* fix lint

* init miner only if asked

* linters

* do not store trie as singlton

* fmt

* new trieDbState constructor
2019-12-10 16:12:21 +03:00

10 lines
116 B
Go

package ethdb
import "sync/atomic"
var dbID = new(uint64)
func id() uint64 {
return atomic.AddUint64(dbID, 1)
}