Page MenuHomePhabricator

[alias-server] Add new API endpoint to give aliases registered after a given blockheight
AbandonedPublic

Authored by bytesofman on Mar 21 2023, 19:28.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

T3010

Depends on D13411

Add new endpoint /aliasesRegisteredAfterBlockheight/:queriedBlockheight to support looking up aliases registered after a given blockheight. This endpoint is designed to support developers who are looking to cache aliases locally and look up only the valid registrations they may be missing.

Test Plan

node index.js
In web browser, navigate to http://localhost:5000/aliasesRegisteredAfterBlockheight/775000 and note response
Play around with blockheight number, i.e increase it to remove the first couple of responses, confirm response adjusts correctly
Try with a string instead of a number for blockheight and confirm error response

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22782
Build 45184: Build Diff
Build 45183: arc lint + arc unit

Event Timeline

Support querying after 0 blockheight to return all valid aliases

Remove pagination param that was not built on