21 Commits

Author SHA1 Message Date
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 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 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 46d7bc4066 Copy by value to avoid memory issues 2021-02-12 14:35:56 +01:00
tomFlowee d6244fb8f6 Improvements of FindAddressInMempool
Make FindAddressInMempool also call onAddressUsedInOutput()

Make the mempool methods use better filter defaults, as the
offset in block doesn't make much sense for them.
2021-02-11 17:43:41 +01:00
tomFlowee 67c3572730 Add FindTxInMempool / FindAddressInMempool
This makes available two new jobtypes to JavaScript
2021-02-11 15:52:00 +01:00
TomZ 8343f61ec2 Update to 2020.06.1 release 2020-09-19 23:53:54 +02:00
TomZ 79bf994962 Fixlets in Search
This fixes a type on a method name,
this also fixes unexpected results in some cases when the user did not
implement onFinished()
2020-07-27 20:52:38 +02:00
TomZ d7dc95dac4 Add support for the AddressMonitor service 2019-12-30 18:49:53 +01:00
TomZ c5157b4c66 Integration fixes.
* Fix how jobs sometimes gets out of sync.
* Fix cash-address address decoding.
* Fix 'jobs' array being locked when used.
2019-12-23 15:06:25 +01:00
TomZ 9cdb09aa75 minor fixlets 2019-12-20 16:34:21 +01:00
TomZ 6b14e7da59 Minor text changes. 2019-12-19 01:26:20 +01:00
TomZ a7bca1a5b0 Port Search to use the Flowee wrappers of callbacks
Those are safer.
2019-12-09 15:10:27 +01:00
TomZ 189a668f7b Make nicer for devs
this adds some docs, converts hashes and scripts to strings.
2019-12-09 15:09:23 +01:00
TomZ c6efe6ad62 populate the blockheader objects too. 2019-12-08 21:22:24 +01:00
TomZ 4a082bf1e9 Make some more examples work. 2019-12-08 19:01:24 +01:00
TomZ 122672211c Make most of search work. 2019-11-30 20:07:39 +01:00
TomZ 42516fbf7c Further populate search 2019-11-29 22:12:08 +01:00
TomZ 8a1f6cbdf9 Make search object actually find stuff 2019-11-29 20:12:16 +01:00
TomZ 7a29d404ae Work on a search option for FloweeJS 2019-11-28 23:58:56 +01:00