-
Notifications
You must be signed in to change notification settings - Fork 374
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
feat: make gnovm wasm-friendly #1012
Conversation
h/t @ilgooz (pair-programming session) Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
@@ -117,14 +117,6 @@ func (ndb *nodeDB) SaveNode(node *Node) { | |||
// Has checks if a hash exists in the database. | |||
func (ndb *nodeDB) Has(hash []byte) bool { | |||
key := ndb.nodeKey(hash) | |||
|
|||
if ldb, ok := ndb.db.(*dbm.GoLevelDB); ok { |
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.
Hey @jaekwon, something seems off here. GoLevelDB.Has()
is essentially checking if GoLevelDB.Get()
is not nil
, making this condition alter the function's behavior to panic instead of returning false, specifically when using a particular driver.
Would you be alright with removing this code, or do you have a different approach in mind?
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.
PR should be ready after resolving this.
Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Here is my counter PR based in this one. |
chore: switch to `gnolang/goleveldb` and cleanup
chore: fix database adapter and bump gnolang/goleveldb version
cc @jeronimoalbi for the failing db checks |
The issue seems to be either a new feature or bug introduced in The tests break because setting I think we should apply your |
@jeronimoalbi thanks for debugging, I'll make a PR. |
Fixed in this PR: moul#5 |
Changes justifying a fork of goleveldb: syndtr/goleveldb@4512381 |
Next steps regarding DB: #1013 |
Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com> Co-authored-by: İlker G. Öztürk <ilker@ilgooz.com>
tm2/pkg/autofile
gnolang/goleveldb
and cleanup moul/gno#3)Fixes #1008
Addresses #1013
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description