Page MenuHomePhabricator

[alias-server] Add processedBlockheight to server state
AbandonedPublic

Authored by bytesofman on Mar 20 2023, 23:06.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Summary

T3025

Depends on D13397

The most recently processed blockheight is not the same as the blockheight of the most recently processed alias. This was introducing count discrepancies.

Add most recently processed blockheight to server state. We will need it to be available in the API later.

Test Plan

delete ecashAliases db
node index.js
populates db
send a non-alias tx to the alias reg address
when it confirms, confirm serverstate processedBlockheight also bumped
send an alias tx
when it confirms, confirm processed correctly and serverState also updates correctly

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22773
Build 45166: Build Diff
Build 45165: arc lint + arc unit