Add support for the chronik.tx(txid) and chronik.blockTxs(hashOrHeight, pageNumber, pageSize) endpoints in the in-node version of chronik-client
Convert value key from string to number. Convert timestamp and timeFirstSeen keys from string to number.
Differential D15278
[chronik-client] Support tx and block-txs endpoints in ChronikClientNode Authored by bytesofman on Jan 25 2024, 05:05.
Details
Add support for the chronik.tx(txid) and chronik.blockTxs(hashOrHeight, pageNumber, pageSize) endpoints in the in-node version of chronik-client Convert value key from string to number. Convert timestamp and timeFirstSeen keys from string to number. teamcity CI tests in this diff, or see local testing approach from test plan at D14915
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes Comment Actions Failed tests logs: ====== /chronik-info: "before each" hook for "gives us the chronik info and throws expected error on bad server connection"./chronik-info "before each" hook for "gives us the chronik info and throws expected error on bad server connection" ======
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/work/modules/chronik-client/test/integration/chronik_info.ts)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)Each failure log is accessible here: Comment Actions Failed tests logs: ====== Gets available non-script endpoint info: "before each" hook for "New regtest chain".Gets available non-script endpoint info "before each" hook for "New regtest chain" ======
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/work/modules/chronik-client/test/integration/non_script_endpoints.ts)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)Each failure log is accessible here: Comment Actions This deserves to be a separate test and setup, I don't see the point of having it all in one as the steps are totally not correlated
Comment Actions This deserves to be a separate test and setup, I don't see the point of having it all in one as the steps are totally not correlated
Comment Actions Failed tests logs: ====== /chronik-info: "before each" hook for "gives us the chronik info and throws expected error on bad server connection"./chronik-info "before each" hook for "gives us the chronik info and throws expected error on bad server connection" ======
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/work/modules/chronik-client/test/integration/chronik_info.ts)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)Each failure log is accessible here: Comment Actions This timeout seems to occur when lint issues are present. My workflow here is arc diff not related to this diff specifically just an observation of a pattern from working on this one Comment Actions add park tests, clean up py script, improve querystring logic now that we have default params Comment Actions Failed tests logs: ====== /blockchain-info: "before each" hook for "gives us the blockchain info + throws expected error on bad connection"./blockchain-info "before each" hook for "gives us the blockchain info + throws expected error on bad connection" ======
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/work/modules/chronik-client/test/integration/blockchain_info.ts)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)Each failure log is accessible here:
Comment Actions Failed tests logs: ====== /block and /blocks: "before each" hook for "gives us the block and blocks after unparking the last block"./block and /blocks "before each" hook for "gives us the block and blocks after unparking the last block" ======
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/work/modules/chronik-client/test/integration/block_and_blocks.ts)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)Each failure log is accessible here: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||