Skip to content

Commit

Permalink
fix: block waiting exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ohager committed Oct 28, 2023
1 parent bb6e4ec commit c880232
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 69 deletions.
50 changes: 25 additions & 25 deletions docs/classes/ChainWalker.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/interfaces/ChainWalkerConfig.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">ChainWalkerConfig</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/8933f78/src/chainWalker.ts#L70">chainWalker.ts:70</a></li></ul></aside>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/bb6e4ec/src/chainWalker.ts#L70">chainWalker.ts:70</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand All @@ -48,7 +48,7 @@ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code
<h3>Default</h3><p><code>./chainwalker.cache.json </code>(current working directory)</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/8933f78/src/chainWalker.ts#L101">chainWalker.ts:101</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/bb6e4ec/src/chainWalker.ts#L101">chainWalker.ts:101</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="intervalSeconds" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>interval<wbr/>Seconds</span><a href="#intervalSeconds" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">interval<wbr/>Seconds</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div>
Expand All @@ -60,7 +60,7 @@ <h3>Default</h3><pre><code class="language-ts"><span class="hl-8">5</span>
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/8933f78/src/chainWalker.ts#L88">chainWalker.ts:88</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/bb6e4ec/src/chainWalker.ts#L88">chainWalker.ts:88</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="maxRetries" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>max<wbr/>Retries</span><a href="#maxRetries" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">max<wbr/>Retries</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div>
Expand All @@ -71,12 +71,12 @@ <h3>Default</h3><pre><code class="language-ts"><span class="hl-8">3</span>
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/8933f78/src/chainWalker.ts#L95">chainWalker.ts:95</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/bb6e4ec/src/chainWalker.ts#L95">chainWalker.ts:95</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="mockLedger" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>mock<wbr/>Ledger</span><a href="#mockLedger" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">mock<wbr/>Ledger</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type ">MockLedger</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/8933f78/src/chainWalker.ts#L107">chainWalker.ts:107</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/bb6e4ec/src/chainWalker.ts#L107">chainWalker.ts:107</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="nodeHost" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>node<wbr/>Host</span><a href="#nodeHost" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">node<wbr/>Host</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
Expand All @@ -86,7 +86,7 @@ <h3 class="tsd-anchor-link"><span>node<wbr/>Host</span><a href="#nodeHost" aria-
Main Net: <a href="http://localhost:8125">http://localhost:8125</a></p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/8933f78/src/chainWalker.ts#L77">chainWalker.ts:77</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/bb6e4ec/src/chainWalker.ts#L77">chainWalker.ts:77</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="verbose" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>verbose</span><a href="#verbose" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">verbose</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div>
Expand All @@ -96,7 +96,7 @@ <h3>Default</h3><pre><code class="language-ts"><span class="hl-0">false</span>
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/8933f78/src/chainWalker.ts#L82">chainWalker.ts:82</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/bb6e4ec/src/chainWalker.ts#L82">chainWalker.ts:82</a></li></ul></aside></section></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
4 changes: 2 additions & 2 deletions docs/interfaces/ChainWalkerContext.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">ChainWalkerContext</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/8933f78/src/chainWalker.ts#L26">chainWalker.ts:26</a></li></ul></aside>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/bb6e4ec/src/chainWalker.ts#L26">chainWalker.ts:26</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand All @@ -39,7 +39,7 @@ <h2>Properties</h2>
<h3 class="tsd-anchor-link"><span>ledger<wbr/>Client</span><a href="#ledgerClient" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">ledger<wbr/>Client</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">Api</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/8933f78/src/chainWalker.ts#L27">chainWalker.ts:27</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/bb6e4ec/src/chainWalker.ts#L27">chainWalker.ts:27</a></li></ul></aside></section></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion docs/types/BeforeQuitHandler.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5><span class="tsd-kind-parameter">ctx</span>: <a href="../interfaces/ChainWalkerContext.html" class="tsd-signature-type tsd-kind-interface">ChainWalkerContext</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/8933f78/src/chainWalker.ts#L63">chainWalker.ts:63</a></li></ul></aside></div>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/bb6e4ec/src/chainWalker.ts#L63">chainWalker.ts:63</a></li></ul></aside></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion docs/types/BlockHandler.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h5><span class="tsd-kind-parameter">block</span>: <span class="tsd-signature-ty
<h5><span class="tsd-kind-parameter">ctx</span>: <a href="../interfaces/ChainWalkerContext.html" class="tsd-signature-type tsd-kind-interface">ChainWalkerContext</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/8933f78/src/chainWalker.ts#L36">chainWalker.ts:36</a></li></ul></aside></div>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/bb6e4ec/src/chainWalker.ts#L36">chainWalker.ts:36</a></li></ul></aside></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion docs/types/PendingTransactionsHandler.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h5><span class="tsd-kind-parameter">tx</span>: <span class="tsd-signature-type
<h5><span class="tsd-kind-parameter">ctx</span>: <a href="../interfaces/ChainWalkerContext.html" class="tsd-signature-type tsd-kind-interface">ChainWalkerContext</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/8933f78/src/chainWalker.ts#L53">chainWalker.ts:53</a></li></ul></aside></div>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/bb6e4ec/src/chainWalker.ts#L53">chainWalker.ts:53</a></li></ul></aside></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion docs/types/TransactionHandler.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h5><span class="tsd-kind-parameter">tx</span>: <span class="tsd-signature-type
<h5><span class="tsd-kind-parameter">ctx</span>: <a href="../interfaces/ChainWalkerContext.html" class="tsd-signature-type tsd-kind-interface">ChainWalkerContext</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/8933f78/src/chainWalker.ts#L44">chainWalker.ts:44</a></li></ul></aside></div>
<li>Defined in <a href="https://github.com/signum-network/signum-chain-walker/blob/bb6e4ec/src/chainWalker.ts#L44">chainWalker.ts:44</a></li></ul></aside></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "signum-chain-walker",
"version": "1.0.3",
"version": "1.0.4",
"description": "",
"main": "dist/index.js",
"private": false,
Expand Down Expand Up @@ -42,8 +42,8 @@
"typescript": "^5.0.4"
},
"dependencies": {
"@signumjs/core": "^1.0.0-rc.70",
"@signumjs/util": "^1.0.0-rc.70",
"@signumjs/core": "^1.0.0-rc.75",
"@signumjs/util": "^1.0.0-rc.75",
"fs-extra": "^11.1.0",
"p-retry": "^4.6.2",
"pino": "^8.14.1",
Expand Down
56 changes: 28 additions & 28 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -581,28 +581,28 @@
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==

"@signumjs/contracts@^1.0.0-rc.70":
version "1.0.0-rc.70"
resolved "https://registry.yarnpkg.com/@signumjs/contracts/-/contracts-1.0.0-rc.70.tgz#909b1318487113178d975c9d174fd659555db9a1"
integrity sha512-KLKOJs5XOSkKNFDNBWSsURlVYugVn7idQNHum1FeSW1RfmZFNzcugXkJ5dqwFhD/MZ4w7xSZ5WGrksKKCGDcuw==
dependencies:
"@signumjs/util" "^1.0.0-rc.70"

"@signumjs/core@^1.0.0-rc.70":
version "1.0.0-rc.70"
resolved "https://registry.yarnpkg.com/@signumjs/core/-/core-1.0.0-rc.70.tgz#dd1b69a0409f538af8ebea73197acedd6dbd1f75"
integrity sha512-wBlW1z7ZFNZujmsXEZvfdKz60kC9/EEll1580XWSs5PwshM0jOuYirZ2GggWu+4y0EB/thNLVP6QekEay0QMBw==
dependencies:
"@signumjs/contracts" "^1.0.0-rc.70"
"@signumjs/crypto" "^1.0.0-rc.70"
"@signumjs/http" "^1.0.0-rc.70"
"@signumjs/util" "^1.0.0-rc.70"
"@signumjs/contracts@^1.0.0-rc.75":
version "1.0.0-rc.75"
resolved "https://registry.yarnpkg.com/@signumjs/contracts/-/contracts-1.0.0-rc.75.tgz#13309c190d30a59cd51d47441c6bc92b7fe562e0"
integrity sha512-VP9A/LTQcL6LingGS3QGz9FvjIsNMkZdOCfcly4VITu6EsWitwDOl6IyaAIbHzFq0iifjku91ZY4S79B/tFikA==
dependencies:
"@signumjs/util" "^1.0.0-rc.75"

"@signumjs/core@^1.0.0-rc.75":
version "1.0.0-rc.75"
resolved "https://registry.yarnpkg.com/@signumjs/core/-/core-1.0.0-rc.75.tgz#b6642d77b08b773368cb7b7d30b166b606fb751d"
integrity sha512-C8mKm6TvhGNRglVxtXFdSgpdIkG0YpQIj1pbNOpl0Q4fl6HP90ffBV3izLK5WLplDrUaXzSAvhlHaszIkJ4m4g==
dependencies:
"@signumjs/contracts" "^1.0.0-rc.75"
"@signumjs/crypto" "^1.0.0-rc.75"
"@signumjs/http" "^1.0.0-rc.75"
"@signumjs/util" "^1.0.0-rc.75"
bignumber.js "^9.0.0"

"@signumjs/crypto@^1.0.0-rc.70":
version "1.0.0-rc.70"
resolved "https://registry.yarnpkg.com/@signumjs/crypto/-/crypto-1.0.0-rc.70.tgz#aeb9272d1e7e016f5ea75fd2826f93d8455082ec"
integrity sha512-M3d9fKwSDxnSvJLagxNyxxYJQT7sGwQBWwwlyrdTtd6b+enVBuOVwqqpPxmjtOoNCCHL9GYKchEWW6h0yuEQ4Q==
"@signumjs/crypto@^1.0.0-rc.75":
version "1.0.0-rc.75"
resolved "https://registry.yarnpkg.com/@signumjs/crypto/-/crypto-1.0.0-rc.75.tgz#eee54a36e13525473462ae0a70b34e5419dd6a98"
integrity sha512-WN/PhdiJAMeSDGvHd3BrmidbRTfedD30bACaJSDhTpXTvPO5ls0tt23Dgn/1nwedNqBe+VRLWbpl8Hudt/IJlw==
dependencies:
"@types/crypto-js" "^3.1.43"
"@types/node" "^12.0.0"
Expand All @@ -612,17 +612,17 @@
pako "^1.0.10"
seedrandom "^3.0.5"

"@signumjs/http@^1.0.0-rc.70":
version "1.0.0-rc.70"
resolved "https://registry.yarnpkg.com/@signumjs/http/-/http-1.0.0-rc.70.tgz#eba8acbc7b96b90f682aca13ef8b57e242e4c277"
integrity sha512-G/oM7qqxeBS2emQCXmUazx6xGHSsG2WAwPFGgFAxGtMJZfW6uuH3D5RGfC+LqylUBQVZPY7XA7TW6OpmxgbSYw==
"@signumjs/http@^1.0.0-rc.75":
version "1.0.0-rc.75"
resolved "https://registry.yarnpkg.com/@signumjs/http/-/http-1.0.0-rc.75.tgz#d8f5278089d6d798c7a696afaeeb64f6eb0eb86f"
integrity sha512-UohhTQwIo3aYEn/3iab50jNK8RumrNcFeCH/eBGq3LhskI6DNIHlMD19nU/HfyllDUT1LNQq+IzxiWPUudL1JQ==
dependencies:
axios "^0.21.4"

"@signumjs/util@^1.0.0-rc.70":
version "1.0.0-rc.70"
resolved "https://registry.yarnpkg.com/@signumjs/util/-/util-1.0.0-rc.70.tgz#3152f2f821d3ec8d05a09f9f0cf630be57d473d6"
integrity sha512-VTmKpSLr9/dFU7eBKDaH0XTYKZ5xvh46BqZYp8i+5BNt76e+b74bZ+Qx9NQIPca9jqlpeBdjbZc1ZQA3yA7hYA==
"@signumjs/util@^1.0.0-rc.75":
version "1.0.0-rc.75"
resolved "https://registry.yarnpkg.com/@signumjs/util/-/util-1.0.0-rc.75.tgz#6920f4f44f2d5d9afefbb002ece1d2943f95485e"
integrity sha512-GbSMHFzv2k74JUPLC4junI+Q7DNfc3L7r91XKpeACnkzyaHhuMoZomLLJ8wxXNAYN4CbNUQRgUZqCL0yuU16NA==
dependencies:
bignumber.js "^9.0.0"
js-base64 "^3.6.0"
Expand Down

0 comments on commit c880232

Please sign in to comment.