ledger, test: remove the storing of account info when instantiating the ledger benchmark test
@@ -11,7 +11,8 @@ import (
)
const databasePath = "testdb"
-const servicesPath = "cmd/services"
+const servicesPath = "cmd/wavelet/services"
+const genesisPath = "cmd/wavelet/genesis.json"
func BenchmarkLedger(b *testing.B) {
b.StopTimer()
@@ -23,11 +24,7 @@ func BenchmarkLedger(b *testing.B) {
b.Fatal(err)
}
- ledger := NewLedger(databasePath, servicesPath)
-
- account := NewAccount(keys.PublicKey)
- account.Store("balance", writeUint64(1000000))
- ApplyGenesis(ledger, []*Account{account})
+ ledger := NewLedger(databasePath, servicesPath, genesisPath)
defer os.RemoveAll(databasePath)
defer ledger.Graph.Cleanup()
