153 Commits

Author SHA1 Message Date
tomFlowee 05b5244a92 new version 2021-08-09 20:07:24 +02:00
tomFlowee e78549edce Import Flowee-libs 2021.05 2021-08-09 20:06:55 +02:00
tomFlowee 2c5e9f6186 Add filters argument to getblock call 2021-04-19 18:46:53 +02:00
tomFlowee b1678bbb54 Import from upstream 2021-04-19 18:46:14 +02:00
tomFlowee d4f932c7a6 New version 2021-04-03 20:38:45 +02:00
tomFlowee bbe0a4a438 Allow output from parseAddress to be used in subscribe call 2021-04-03 20:35:42 +02:00
tomFlowee d0ceec1e25 Add assert from upstream 2021-04-03 20:35:22 +02:00
tomFlowee 609ddd2efa Fix possible corruption 2021-04-03 20:34:51 +02:00
tomFlowee 94390e2fd1 Add parseAddress to Flowee namespace 2021-04-03 20:34:20 +02:00
tomFlowee 1255aa6ccb Process address subscription in bulk when possible 2021-04-03 17:59:48 +02:00
tomFlowee 4699c6ba13 new Flowee wide release 3.1 2021-03-29 16:01:35 +02:00
tomFlowee 83c5c1a335 import upstream changes 2021-03-25 23:49:34 +01:00
tomFlowee 21836f1653 Support fetching fees for a transaction directly
Only on a Hub that enabled it, though
2021-03-18 12:32:59 +01:00
tomFlowee 15f709a780 Import library updates 2021-03-18 12:31:27 +01:00
tomFlowee 356e8e0e35 new version 2021-02-26 19:45:59 +01:00
tomFlowee 291dedfa30 This adds several features.
* message sending now allows arrays.
The underlying engine allows more than the JS allowed, this has been
fixed.
Specifically we now allow something like:
  message.body[45] = ["first", "second"];

* A new helper method is exposed to JavaScript: parseAddress()
This method allows one to parse Bitcoin addresses and return the
script-hash used elsewhere.
Notice that the second argument is an optional prefix, allowing for
parsing of testnet addresses.
2021-02-26 19:37:16 +01:00
tomFlowee f4fb05cd6b Also cancel any promises open on shutdown. 2021-02-20 11:04:15 +01:00
tomFlowee 48caa5a806 Avoid empty object. 2021-02-19 19:55:51 +01:00
tomFlowee 76a1b6daa2 new version 2021-02-19 19:19:14 +01:00
tomFlowee 326a3f4188 Support the new API for chainChanged: blocksRemoved. 2021-02-19 19:18:03 +01:00
tomFlowee 77b917e040 Fix copy/paste bug. 2021-02-19 18:22:53 +01:00
tomFlowee b8b502091f Import changes from flowee-libs 2021-02-19 18:04:09 +01:00
tomFlowee a929995f50 new version 2021-02-18 09:51:31 +01:00
tomFlowee 7fb2ba0c48 Fix memory usage of pools.
This follows a refactor in flowee-libs, we make the reserve amount
mandatory to be called, since its too easy to forget to reserve.
2021-02-18 09:51:31 +01:00
tomFlowee 0829548e2f Fix from elderapo, call it once only. 2021-02-18 09:51:26 +01:00
tomFlowee 64b6ecc583 update version 2021-02-17 21:42:27 +01:00
tomFlowee d96c30522c Fixes 2021-02-17 21:41:30 +01:00
tomFlowee 525ef09b64 Warp callbacks in unique_ptrs
The NodeJS APis break expected contracts with regards to the
Napi::ThreadSafeFunction and that makes them not work as a normal
object.
Using new / delete on them works much better and allows the user
to re-assign a callback to a new value.
2021-02-17 21:02:06 +01:00
tomFlowee 5c9a8a7f92 Updates and fixes 2021-02-17 17:36:34 +01:00
tomFlowee 3745531d50 Create separate examples repo 2021-02-17 17:35:55 +01:00
tomFlowee 2586e78bbb Add new method 2021-02-17 16:51:06 +01:00
tomFlowee e3fc17ecd5 more outputscripthash 2021-02-17 16:50:58 +01:00
tomFlowee 83887a17ae Import from upstream 2021-02-17 15:35:17 +01:00
tomFlowee 2abc367ca3 Fix signed/unsigned issue
When the server sent a negative number we
accidentally converted that to an unsigned long.
2021-02-17 15:34:52 +01:00
tomFlowee 5fa02dae3e Support server option IncludeOutputScriptHash 2021-02-17 15:33:55 +01:00
tomFlowee e81f330ce1 Remove incorrect assert 2021-02-17 15:33:00 +01:00
tomFlowee 85f3d9a003 Fix destructor 2021-02-16 17:31:57 +01:00
tomFlowee 5ea9b44725 Don't allow to connect multiple times 2021-02-16 17:31:04 +01:00
tomFlowee b63b385a0c Remove debug code 2021-02-16 17:30:38 +01:00
tomFlowee 7d0ef2c341 bugfix version 2021-02-15 14:10:34 +01:00
tomFlowee 4c69117ced Fix mapping and docs 2021-02-15 14:08:43 +01:00
tomFlowee 097a7c6f12 Be consistent in our assigning of properties 2021-02-15 13:35:39 +01:00
tomFlowee be397bcd92 new version 2021-02-15 12:25:02 +01:00
tomFlowee 7a11910a06 Fix returning the wrong value 2021-02-15 12:24:26 +01:00
tomFlowee 506751d22d Use the lib 2021-02-15 12:16:14 +01:00
tomFlowee 0b3487c2ea Add onChainChanged() callback for new blocks 2021-02-15 12:15:07 +01:00
tomFlowee 665b18cf0b Add 'stop()' to shut down the engine 2021-02-15 10:46:56 +01:00
tomFlowee acb0ddd842 Forward loglevels 2021-02-14 23:36:59 +01:00
tomFlowee baf11f749e Split ContextData into two classes.
This separates the JavaScript napi stuff better from the rest.
2021-02-14 19:44:28 +01:00
tomFlowee 27059e780f release the logLevel 2021-02-13 11:14:17 +01:00