-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support cross-compilation of stylus programs #353
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved with comments
ethdb/database.go
Outdated
@@ -194,4 +199,5 @@ type Database interface { | |||
Snapshotter | |||
io.Closer | |||
WasmDataBaseRetriever | |||
WasmTargetsRetriever |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we merge WasmTargetsRetriever and WasmDataBaseRetriever?
In a future PR I hope to remove all of them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved the WasmTargets() method to WasmDataBaseRetriever.
Would it make sense to instead of having wasmdb
and wasmTag
in cachingDB
to have:
func (db *cachingDB) WasmStore() ethdb.KeyValueStore {
wasmdb, _ := wasmDatabsaseRetriever.WasmDatabase()
return wasmdb
}
func (db *cachingDB) WasmCacheTag() uint32 {
_, wasmTag := wasmDatabsaseRetriever.WasmDatabase()
return wasmTag
}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Resolves NIT-2632