You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.ok(/functiongetBlock\(blockNum,callback\)/.test(historySourceJs),'getBlock API missing');
47
47
assert.ok(/viz\.api\.getBlock/.test(historySourceJs),'getBlock should use live VIZ RPC as first implementation');
48
-
assert.ok(/_getBlockFromMirrors\(blockNum,0,callback\)/.test(historySourceJs),'getBlock should fall back to archive mirrors');
48
+
assert.ok(/_getBlockEventsFromMirrors\(blockNum,0/.test(historySourceJs),'getBlock should try archive event blocks before block payload mirrors');
49
+
assert.ok(/_getBlockFromMirrors\(blockNum,0,callback\)|_getBlockFromMirrors\(blockNum,0,function/.test(historySourceJs),'getBlock should fall back to archive block mirrors');
49
50
assert.ok(/XMLHttpRequest/.test(historySourceJs),'mirror fallback should use browser-safe XHR');
50
51
assert.ok(/functiongetAccountProtocol\(account,protocol,callback\)/.test(historySourceJs),'account protocol API missing');
51
52
assert.ok(/getCapabilities/.test(historySourceJs),'capabilities API missing');
@@ -54,6 +55,7 @@ test('history source wraps VIZ block/account access', function () {
54
55
test('archive mirror config is explicit and points at production nginx path',function(){
-thinned block JSON for indexed blocks (only operations that became game events; no full raw block storage);
11
11
- normalized public events for:
12
12
-`custom` protocol `VM`;
13
13
-`custom` protocol `V`;
14
14
-`custom` protocol `VE`;
15
-
-`award` operations used for blessings/rewards.
15
+
-game-marked `award` operations (`memo` starts with `viz://vm/`).
16
16
17
17
The implementation stores data in SQLite (`data/archive-node/archive.sqlite`) using Node 22's built-in `node:sqlite` module. `sqlite-schema.sql` documents the live schema.
18
18
@@ -43,6 +43,7 @@ node daemon.js
43
43
GET /health
44
44
GET /v1/status
45
45
GET /v1/block/:blockNum.json
46
+
GET /v1/events/block/:blockNum.json
46
47
GET /v1/range?start=123&end=456&protocol=VM,V,VE&limit=500
47
48
GET /v1/account/:account/protocol/:protocol/actions?limit=500
48
49
GET /v1/account/:account/protocol/:protocol/latest
@@ -54,6 +55,7 @@ When hosted behind Nginx at `/archive-mirror`, the same API is available under t
0 commit comments