-
Notifications
You must be signed in to change notification settings - Fork 13
feat(controller): anchors API service #719
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Suraj Auwal <[email protected]>
@siradji: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.
DetailsI am a bot created to help the DeFiCh developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the DeFiCh/oss-governance-bot repository. |
Code Climate has analyzed commit 0d81172 and detected 0 issues on this pull request. View more on Code Climate. |
Codecov Report
@@ Coverage Diff @@
## main #719 +/- ##
==========================================
+ Coverage 92.31% 92.37% +0.05%
==========================================
Files 121 123 +2
Lines 3163 3187 +24
Branches 384 386 +2
==========================================
+ Hits 2920 2944 +24
Misses 234 234
Partials 9 9
Continue to review full report at Codecov.
|
Co-authored-by: canonbrother <[email protected]>
Signed-off-by: Suraj Auwal <[email protected]>
Adding on top of what @canonbrother mentioned here , using |
Co-authored-by: canonbrother <[email protected]>
Signed-off-by: Suraj Auwal <[email protected]>
Signed-off-by: Suraj Auwal <[email protected]>
await tGroup.get(0).container.call('spv_setlastheight', [1]) | ||
const anchor1 = await createAnchor() | ||
await tGroup.get(0).generate(1) | ||
await tGroup.waitForSync() |
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.
minor impr
- remove
waitForSync()
since the test only use 1 node - test create 2 anchors within a block which just
await createAnchor()
await createAnchor()
await generate(1) // 2 anchors in 1 block
why do we need this because the current query would not handle this data..
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.
@canonbrother i am a little bit confused here. Could you provide more clarification?
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.
just updated the fixture which contain 2 anchors within a btc block
the query is needed to handle this scenario
@siradji please resolve the comments and fix the test |
Signed-off-by: Suraj Auwal <[email protected]>
@fuxingloh i will be fixing it today. Found out a new issue with the query. |
Initially, i thought that using |
Signed-off-by: Suraj Auwal [email protected]
What kind of PR is this?:
/kind feature
What this PR does / why we need it:
Expose anchors endpoint
Which issue(s) does this PR fixes?:
Fixes BirthdayResearch/jellyfishsdk#1488
Additional comments?: