Closed jbencin closed 1 year ago
Merging #312 (439a1bb) into develop (3916c3c) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## develop #312 +/- ##
========================================
Coverage 60.00% 60.00%
========================================
Files 4 4
Lines 45 45
Branches 6 6
========================================
Hits 27 27
Misses 18 18
:tada: This PR is included in version 0.8.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Description
This PR contains the following changes:
anchored
to the HTTP queryApplicable issues
Additional info (benefits, drawbacks, caveats)
Scope
This PR has a wider scope than the associated issue, as it affects all API endpoints which can accept a
tip=<string>
parameter. I'm not sure if this is desirable.API Consistency
Treating microblocks as confirmed creates some inconsistency in how microblocks are reported by the API:
/extended/v1/tx/
is queried/extended/v1/tx/{txid}
endpoint before the tx is included in an anchor block, it will have"tx_status": "pending"
setAPI Changes
Since API requests now default to
tip=latest
, I've added the option to usetip=anchored
in the query string in order to not take microblocks into account when processing the requestPotential Race Condition
It's possible for an API call to fail when using the latest microblock tip. Relevant comment from
rpc.rs
:See here for full context
Checklist
docs/rpc/openapi.yaml
andrpc-endpoints.md
for v2 endpoints,event-dispatcher.md
for new events)clarity-benchmarking
repobitcoin-tests.yml