Page MenuHomePhabricator

[alias-server] Update aliasConstants import in index.js
ClosedPublic

Authored by bytesofman on Jun 19 2023, 23:11.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABC60ebb807f2d9: [alias-server] Update aliasConstants import in index.js
Summary

T3060

Correct import for aliasConstants

Test Plan

npm test

node index.js and app boots up locally

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emack requested changes to this revision.Jun 19 2023, 23:56
emack added a subscriber: emack.

image.png (308×1 px, 54 KB)

2 tests failing for me

Also on app startup it seems to timeout when calling isFinalBlock. I've pointed it at my avalanche node and manual curls work fine but not through this app.

image.png (651×1 px, 155 KB)

This revision now requires changes to proceed.Jun 19 2023, 23:56

FYI - in secrets.js the rpc port is specified as part of avalancheRpc.url. Let me know if it shouldn't be in there.

FYI - in secrets.js the rpc port is specified as part of avalancheRpc.url. Let me know if it shouldn't be in there.

it's the default so ok to be there

image.png (308×1 px, 54 KB)

2 tests failing for me

Also on app startup it seems to timeout when calling isFinalBlock. I've pointed it at my avalanche node and manual curls work fine but not through this app.

image.png (651×1 px, 155 KB)

check node version for the unit tests, they are passing on my machine and CI

does curl work with isFinalBlock ?

node version is v16.20.0

edit: ok I think I've worked out why - the app's index.js is looking for ./secrets whereas mainTests.js is looking for ../secrets.sample

node version is v16.20.0

edit: ok I think I've worked out why - the app's index.js is looking for ./secrets whereas mainTests.js is looking for ../secrets.sample

ok yeah. taking a look at the README, there's a lot of updating and documentation that needs to be changed. I'll do this in a separate diff. For now,

cp secrets.sample.js secrets.js

then update with your parameters and node index.js

This revision is now accepted and ready to land.Jun 20 2023, 13:16