T3060
Refactor to parse alias txs per the latest spec.
Differential D13916
[alias-server] Parse aliases according to latest spec bytesofman on May 17 2023, 23:56. Authored by
Details
T3060 Refactor to parse alias txs per the latest spec. npm test
Diff Detail
Event TimelineComment Actions Build Bitcoin ABC Diffs / Diff Testing (alias-server-tests) failed.
Tail of the build log: Some issues need review, and may require choosing a different dependency. Run `npm audit` for details. > alias-server@1.0.0 test > mocha --reporter mocha-junit-reporter --reporter-options mochaFile=test_results/alias-server-junit.xml --reporter-options testsuitesTitle=Alias Server Unit Tests --reporter-options rootSuiteTitle=Alias Server Connected successfully to MongoDB server Initialized serverState on app startup Configured connection to database ecashAliases Connected successfully to MongoDB server Configured connection to database ecashAliases Connected successfully to MongoDB server Initialized serverState on app startup Configured connection to database ecashAliases Connected successfully to MongoDB server Initialized serverState on app startup Configured connection to database ecashAliases Connected successfully to MongoDB server Initialized serverState on app startup Configured connection to database ecashAliases Connected successfully to MongoDB server Initialized serverState on app startup Configured connection to database ecashAliases Connected successfully to MongoDB server Initialized serverState on app startup Configured connection to database ecashAliases Connected successfully to MongoDB server Configured connection to database ecashAliases ----------------------|---------|----------|---------|---------|------------------------------------ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------------------|---------|----------|---------|---------|------------------------------------ All files | 78.24 | 78.94 | 82.92 | 78.19 | alias-server | 100 | 100 | 100 | 100 | config.js | 100 | 100 | 100 | 100 | secrets.sample.js | 100 | 100 | 100 | 100 | alias-server/src | 78.12 | 78.94 | 82.92 | 78.07 | alias.js | 89.36 | 76.66 | 100 | 89.01 | ...5,93-97,122-126,142,188,243-246 chronik.js | 64.17 | 83.33 | 71.42 | 65.07 | 19,44,72,113-118,151-196 chronikWsHandler.js | 70.37 | 20 | 66.66 | 70.37 | 23,78-94 db.js | 70.83 | 90 | 83.33 | 70.83 | ...109-110,122-123,130-140,154-158 events.js | 88 | 93.75 | 100 | 87.75 | 29-34,90-95,111,183 main.js | 55.17 | 62.5 | 50 | 55.17 | 40,58-80 rpc.js | 93.75 | 83.33 | 100 | 93.75 | 36 telegram.js | 80 | 100 | 75 | 80 | 20 utils.js | 100 | 100 | 100 | 100 | ----------------------|---------|----------|---------|---------|------------------------------------ ##teamcity[blockOpened name='Code Coverage Summary'] ##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='277'] ##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='354'] ##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='75'] ##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='95'] ##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='34'] ##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='41'] ##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='269'] ##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='344'] ##teamcity[blockClosed name='Code Coverage Summary'] Build alias-server-tests failed with exit code 12
Comment Actions Let's update the spec in its own diff
Comment Actions
OK -- made some amendments here just so we can see it agrees with the code as it is in this diff. When the diff is good to go, I will remove the spec changes and put them into their own diff.
Comment Actions Let's split this into logical pieces. You will need:
Look at your code, especially your last changes: it should have been obvious that the new functions needed to be split: they are self-contained with their dedicated tests, so they can be reviewed independently.
|