-
Notifications
You must be signed in to change notification settings - Fork 69
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: Add support for avail as a DA #355
Conversation
Codecov Report
@@ Coverage Diff @@
## main #355 +/- ##
==========================================
- Coverage 55.39% 52.29% -3.11%
==========================================
Files 86 89 +3
Lines 13234 14197 +963
==========================================
+ Hits 7331 7424 +93
- Misses 4879 5740 +861
- Partials 1024 1033 +9
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -158,6 +160,8 @@ func TestProduceOnlyAfterSynced(t *testing.T) { | |||
<-ctx.Done() | |||
require.Greater(t, manager.store.Height(), lastStoreHeight) | |||
assert.Equal(t, batch.EndHeight, manager.store.Height()) | |||
// Wait until manager is done | |||
time.Sleep(time.Second * 4) |
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.
why u need it? isn't the manager stopped by the context already?
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.
yes it is but it takes the manager time due to the other case running (so the context.Done() case doesn't get a context switch immediately but only after a few seconds).
the tests kept failing so this fixed it.
prob it's bit dirty. if you have a better idea..
config/toml.go
Outdated
# da_config = "{\"base_url\": \"http://127.0.0.1:26659\", \"timeout\": 60000000000, \"fee\":20000, \"gas_limit\": 20000000, \"namespace_id\":\"000000000000ffff\"}" | ||
da_config = "{{ .DAConfig }}" | ||
# Avail config example: | ||
# da_config = “{\“seed\“: \“MNEMONIC\“, \“api_url\“: \“wss://kate.avail.tools/ws\“, \“app_id\“: 0, \“tip\“:10}“, |
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.
seems like there are curly quotes (vs straight quotes)
This pr aims to provide with a stable avail client to dymint.
Currently there is a tx size limitation of 15kb on avail side which makes it unusable for dymint due to (at least) 2 reasons:
The issues were discussed with the avail team and they are working on increasing the max tx size ASAP.
Either way we can merge it and it should be usable once they do.
PR Standards
Opening a pull request should be able to meet the following requirements
For Author:
godoc
commentsFor Reviewer:
After reviewer approval: