Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit 67d9b8c

Browse files
author
Jeannette
committed
preserve vdb changes
1 parent 3d1aee7 commit 67d9b8c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/genesis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (ga *GenesisAlloc) flush(db ethdb.Database) error {
116116
statedb.SetState(addr, key, value)
117117
}
118118
}
119-
root, err := statedb.Commit(false)
119+
root, _, err := statedb.Commit(false)
120120
if err != nil {
121121
return err
122122
}

eth/filters/filter_system.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ type Backend interface {
6666
SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription
6767
SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscription
6868
SubscribePendingLogsEvent(ch chan<- []*types.Log) event.Subscription
69+
SubscribeStateChangeEvent(ch chan<- core.StateChangeEvent) event.Subscription
6970

7071
BloomStatus() (uint64, uint64)
7172
ServiceFilter(ctx context.Context, session *bloombits.MatcherSession)
@@ -207,6 +208,7 @@ func NewEventSystem(sys *FilterSystem, lightMode bool) *EventSystem {
207208
rmLogsCh: make(chan core.RemovedLogsEvent, rmLogsChanSize),
208209
pendingLogsCh: make(chan []*types.Log, logsChanSize),
209210
chainCh: make(chan core.ChainEvent, chainEvChanSize),
211+
stateChangeEventChan: make(chan core.StateChangeEvent, stateChangeChanSize),
210212
}
211213

212214
// Subscribe events

0 commit comments

Comments
 (0)