Commit Graph

145 Commits

Author SHA1 Message Date
Daniela Brozzoni
7535debbd6
Bump to v0.17.0
Some checks failed
CI / Test (push) Has been cancelled
2023-07-13 18:49:46 -06:00
Daniela Brozzoni
87348e5809
Merge bitcoindevkit/rust-electrum-client#112: Ignore other unrecoverable errors in retry client
7c11f208c0 Ignore other unrecoverable errors in retry client (Riccardo Casatta)
dbec56a95b tests: fix list_unspent tests (Riccardo Casatta)

Pull request description:

  similar to https://github.com/bitcoindevkit/rust-electrum-client/pull/107

ACKs for top commit:
  danielabrozzoni:
    utACK 7c11f208c0

Tree-SHA512: 74768e197b754dd98bbd435abaa5bbea018e65103615fba0b874252202c59fee5ec07ca90c0a19e112d3a1351e7ac172bef3bdff2eb97d245eb981c2a58660f9
2023-07-13 18:48:06 -06:00
Riccardo Casatta
7c11f208c0
Ignore other unrecoverable errors in retry client 2023-07-13 09:31:24 +02:00
Riccardo Casatta
dbec56a95b
tests: fix list_unspent tests
the mtgox address used got too many txs, resulting in a server error:
"too many txs"

The address is changed with the peter todd sha256 breaking challenge, which
should be very difficult to spend :) and as of now has just a few txs
2023-07-13 09:31:21 +02:00
Daniela Brozzoni
20493aa475
Merge bitcoindevkit/rust-electrum-client#110: Update rustls dependency
f5a438cd0a Bump version to 0.16.0 (Tobin C. Harding)
9a7cc14c94 Update rustls dependency to version 0.21 (Tobin C. Harding)

Pull request description:

  Update the `rustls` dependency to version 0.21 and bump the version of this crate to 0.16 so the change can be released.

  I don't know what stage in your release cycle you guys are up to so I put the version bump as a separate patch - can drop it if not needed.

  Done to help with https://github.com/bitcoindevkit/rust-esplora-client/pull/51

ACKs for top commit:
  danielabrozzoni:
    utACK f5a438cd0a

Tree-SHA512: 106cbe57651a6e1365f87836598cbec9b1e837f0376ddc1c56cb75e5615543659f5c05cea7d5eb8da8b6cf278fcbe6ef866a019b9829db40cc8055798eb0f541
2023-06-28 09:46:12 +02:00
Tobin C. Harding
f5a438cd0a
Bump version to 0.16.0
Some checks failed
CI / Test (push) Has been cancelled
We just updated the rustls dependency, in order for downstream crates to
take advantage of this change bump the version so we can release.
2023-06-28 07:57:25 +10:00
Tobin C. Harding
9a7cc14c94
Update rustls dependency to version 0.21
Update to the latest version of `rustls`.
2023-06-28 07:56:21 +10:00
Daniela Brozzoni
c84507e45b
Merge bitcoindevkit/rust-electrum-client#109: Errors if expecting headers notification but not subscribed
b86f2bb22c errors if expecing headers notification but not subscribed (Riccardo Casatta)

Pull request description:

  the opposite, erroring when subscribing multiple times, is not handled because clients could call multiple times to trigger the server to reply with the tip

ACKs for top commit:
  danielabrozzoni:
    utACK b86f2bb22c - changes look good to me, didn't test locally

Tree-SHA512: e1a21223448e708cc054271eb1ac5285dc98bdadf7497a856fc4a19ff51655879352ca6ef9f3fb5ec5f9071dd7ee50b2e44d4c65e70694e5d9fa53d280179dd2
2023-06-27 15:12:08 +02:00
Riccardo Casatta
b86f2bb22c
errors if expecing headers notification but not subscribed
the opposite, erroring when subscribing multiple times, is not handled because
clients could call multiple times to trigger the server to reply with the tip
2023-06-20 15:45:11 +02:00
Daniela Brozzoni
d2dbab93be
Merge bitcoindevkit/rust-electrum-client#108: Bump to v0.15.1
0f356ef94d Bump to v0.15.1 (Alekos Filini)

Pull request description:

  Release as a bug fix with #107 merged

ACKs for top commit:
  danielabrozzoni:
    ACK 0f356ef94d

Tree-SHA512: 3da6a4701707549d62cfa936f5c185eec0967766797dfbacce1fb68b716b90f7e7e163c797dfb7792435cad2769a43e1b23247b0ec86f9a098a79ea4589ee281
2023-05-16 17:49:47 +02:00
Alekos Filini
0f356ef94d
Bump to v0.15.1
Some checks failed
CI / Test (push) Has been cancelled
2023-05-14 12:57:11 +02:00
Alekos Filini
27eb4d0cb0
Merge bitcoindevkit/rust-electrum-client#107: Retry client should return AlreadySubscribed error
3a61037733 Retry client should return AlreadySubscribed error (Riccardo Casatta)

Pull request description:

  Users may leverage the Error to avoid remembering client-side the subscription status. eg. Always subscribing and calling script_pop in case AlreadySubscribed is returned.

  Backport for version 0.14.0

ACKs for top commit:
  afilini:
    ACK 3a61037733

Tree-SHA512: d6542227ca03b9f3755cec05115f86de54789cfc49fc87b603b653e0458f6b03ae9fea57fa110221395a4e33cf62a5b2bd7639c4269ae5291e4c92c99ef41eba
2023-05-14 12:56:43 +02:00
Riccardo Casatta
3a61037733
Retry client should return AlreadySubscribed error
Users may leverage the Error to avoid remembering client-side the subscription
status. eg. Always subscribing and calling script_pop in case AlreadySubscribed
is returned.
2023-05-12 11:24:10 +02:00
Daniela Brozzoni
d8ee94c30d
Merge bitcoindevkit/rust-electrum-client#105: Bump to v0.15.0
bd16116f9a Bump to v0.15.0 (Alekos Filini)

Pull request description:

ACKs for top commit:
  danielabrozzoni:
    ACK bd16116f9a

Tree-SHA512: c184fe6ed2f2b3ad5282b4ddb2d3186dcadee4685a417ebff0f9ab9e1c9a5596d91dc561c831ae7131fc63a0401f4dc29ece30024c09e11b99683f613e8ed856
2023-05-02 20:30:53 +02:00
Alekos Filini
bd16116f9a
Bump to v0.15.0
Some checks failed
CI / Test (push) Has been cancelled
2023-05-02 20:27:00 +02:00
Daniela Brozzoni
b989ddb04b
Merge bitcoindevkit/rust-electrum-client#103: upgrade bitcoin dep to 0.30.0
c925a9179e upgrade bitcoin dep to 0.30.0 (Riccardo Casatta)

Pull request description:

ACKs for top commit:
  danielabrozzoni:
    ACK c925a9179e

Tree-SHA512: 2b9b7756639af4d931213046866dc36ebee2a5adcbd01c906e27990696b07f1bcf87c2ee009a959f96b17407637801b856e8d4fb9a933fab148f22a619a0d586
2023-05-02 20:18:14 +02:00
Riccardo Casatta
c925a9179e
upgrade bitcoin dep to 0.30.0 2023-04-06 11:50:13 +02:00
Alekos Filini
abdbd020e1
Bump to v0.14.0
Some checks failed
CI / Test (push) Has been cancelled
2023-04-06 10:11:18 +02:00
Alekos Filini
a04a84299d
Merge bitcoindevkit/rust-electrum-client#101: Make ScriptStatus Serializable
80b2adeb4b Make ScriptStatus Serializable (Riccardo Casatta)

Pull request description:

  it's common to cache this value client side, so making it Serializable simplify things downstream

ACKs for top commit:
  afilini:
    ACK 80b2adeb4b

Tree-SHA512: 9467b4f2ee24ee2a684931df31607135f44c624f65d7d3ee64b3991a06de73a07475e4d1a4b8062093500e6a7cb47c1b2ebf094596fca33bf4cc54b26851b910
2023-04-06 10:09:38 +02:00
Alekos Filini
d26dfd7f54
Merge bitcoindevkit/rust-electrum-client#100: Implement batch call for script subscribe
40cecd5010 Use Borrow for all items in IntoIterator (Riccardo Casatta)
bf2f8ef2e5 script_subscribe IntoIterator accepts Borrow<&Script> (Riccardo Casatta)
156e6fc839 Implement batch call for script subscribe (Riccardo Casatta)

Pull request description:

  script_subscribe call hasn't the batch counterpart which may be convenient for multiple subsequent subscribe.

ACKs for top commit:
  afilini:
    ACK 40cecd5010

Tree-SHA512: 26a3ebb9d1267a224c85b765cf793523771bf7e74990dd804a35693bfebc549f7524214725092eac2276f22cd24eafc72270986549ac02f52641db83fcb71324
2023-04-06 10:07:20 +02:00
Riccardo Casatta
80b2adeb4b
Make ScriptStatus Serializable
it's common to cache this value client side, so making it Serializable
simplify things downstream
2023-04-05 11:34:23 +02:00
Riccardo Casatta
40cecd5010
Use Borrow for all items in IntoIterator 2023-03-22 17:05:02 +01:00
Riccardo Casatta
bf2f8ef2e5
script_subscribe IntoIterator accepts Borrow<&Script>
So that is callable with `&Vec<Script>` and `Vec<&Script>`
2023-03-22 15:53:02 +01:00
Riccardo Casatta
156e6fc839
Implement batch call for script subscribe 2023-03-21 17:03:19 +01:00
Alekos Filini
84d6860144
Bump to v0.13.0
Some checks failed
CI / Test (push) Has been cancelled
2023-03-11 11:41:19 +01:00
Daniela Brozzoni
413c964e5c
Merge bitcoindevkit/rust-electrum-client#97: Don't .unwrap() on invalid proxies
3568b60612 Don't `.unwrap()` on invalid proxies (Riccardo Mazzarini)

Pull request description:

ACKs for top commit:
  danielabrozzoni:
    utACK 3568b60612

Tree-SHA512: c2ebb21d6e78616f34a8d3becb68551a857c7b391c46ff4d1e379e482a5a5d90a3c12807896fc4da99a7442b1911bf00f02db41ba0cb890bf0acd284b1e6e3e2
2023-02-27 09:18:05 +01:00
Riccardo Mazzarini
3568b60612
Don't .unwrap() on invalid proxies 2023-02-23 03:15:26 +01:00
Alekos Filini
129081999c
Merge bitcoindevkit/rust-electrum-client#88: timeout() and socks() don't return Result
561db261d3 `timeout()` and `socks()` don't return Result (Riccardo Casatta)

Pull request description:

  The `Result` was necessary in the past because they couldn't both be set,
  this is not true anymore after 7493630ed8

ACKs for top commit:
  afilini:
    ACK 561db261d3

Tree-SHA512: 7654cfbbc7beac6acec786060e373bbc046e1dae0faf2b2ca1df33121e9e92a8f4950c7f8775e44226a62483aeae41c76162cf037ce38137c44d2fedd38560c8
2022-09-13 18:36:59 +02:00
Riccardo Casatta
561db261d3
timeout() and socks() don't return Result
The `Result` was necessary in the past because they couldn't both be set,
this is not true anymore after 7493630ed8
2022-09-13 09:27:03 +02:00
Alekos Filini
add1b7853e
Merge bitcoindevkit/rust-electrum-client#87: Bump version to 0.12.0
97e60bad4b Bump version to 0.12.0 (Alekos Filini)

Pull request description:

ACKs for top commit:
  danielabrozzoni:
    ACK 97e60bad4b

Tree-SHA512: e71c2093229552b5317f9309008924a6b2e8f6a48564535d2cd77e6830f342359574518836cfa579460b642c6aa8a2f36b81637b2ee8a48a68f695425333f1a2
2022-09-05 11:53:22 +02:00
Alekos Filini
97e60bad4b
Bump version to 0.12.0
Some checks failed
CI / Test (push) Has been cancelled
2022-09-05 11:31:47 +02:00
Alekos Filini
3adfbd783f
Merge bitcoindevkit/rust-electrum-client#81: Bump bitcoin dependency to ^0.29, minor related fixes
d132572c14 Bump bitcoin dependency to ^0.29, minor related fixes (Steve Myers)

Pull request description:

  This version bump for `bitcoin` dependency is required to fix https://github.com/bitcoindevkit/bdk/issues/646.

ACKs for top commit:
  afilini:
    ACK d132572c14

Tree-SHA512: ad89362fa32e386f02ef5721489d2c24b342af8997ceac09933dfc979f70a12b876b4856dd8982942968d8ad82ae34c49386744f51db22c70289a259a195c943
2022-09-05 11:31:08 +02:00
Steve Myers
d132572c14
Bump bitcoin dependency to ^0.29, minor related fixes 2022-08-31 07:54:48 -05:00
Alekos Filini
ad62e7a80f
Merge bitcoindevkit/rust-electrum-client#86: Bump version to 0.11.0
f3caf4a279 Bump version to 0.11.0 (Alekos Filini)

Pull request description:

ACKs for top commit:
  danielabrozzoni:
    ACK f3caf4a279

Tree-SHA512: 1b8f9853452f1462daa3788bfa3f110481d8674b870ad67eebcf8857f409312b3d69dc188ee1bc5093708f965c59c5e89fd75605bfa9059239de56fb1dbdeaee
2022-08-31 11:50:28 +02:00
Alekos Filini
f3caf4a279
Bump version to 0.11.0
Some checks failed
CI / Test (push) Has been cancelled
2022-08-30 18:26:51 +02:00
Alekos Filini
cdfc21bd6a
Merge bitcoindevkit/rust-electrum-client#84: Use idiomatic rust for the raw_call method
fc8ba9de90 Use idiomatic rust for the `raw_call` method (Alekos Filini)

Pull request description:

ACKs for top commit:
  danielabrozzoni:
    tACK fc8ba9de90

Tree-SHA512: 1b2e92eff78df5b9fe3e6d9121af7c090e27e25aecd39187e6983252b288e0109350603d175ded2cf25365d6a85601ad4da5d8495c9943fe27280c36fe5f0c49
2022-08-30 18:25:29 +02:00
Alekos Filini
fc8ba9de90
Use idiomatic rust for the raw_call method 2022-08-30 12:58:44 +02:00
Alekos Filini
9994f8a2e1
Merge bitcoindevkit/rust-electrum-client#83: Revert "Ignore empty lines"
cbda7a22db Revert "Ignore empty lines" (Alekos Filini)

Pull request description:

  This reverts commit 0e3e6325e6.

  This has been causing issues with tests timing out

ACKs for top commit:
  notmandatory:
    utACK cbda7a22db

Tree-SHA512: ff683e16e623e71f017a361dc85e12fd7ea23d8ebd0f0616dd543aa3b12645540ae82f7eaab233dd846f5e802540064ce6a56e056d225a79e5347d730a736926
2022-08-30 12:57:17 +02:00
Alekos Filini
cbda7a22db
Revert "Ignore empty lines"
This reverts commit 0e3e6325e6.

This has been causing issues with tests timing out
2022-08-24 14:35:38 +02:00
Alekos Filini
7e40dfd441
Merge bitcoindevkit/rust-electrum-client#80: Client: Drop script subscriptions to free lock
aa0b957818 Client: Drop script subscriptions to free lock (Sebastian Kung)

Pull request description:

  This fixes a supposed deadlock when the reader thread receives a script subscription notification from the server before it receives a subscribing response.

  I am not 100% sure if this actually fixes a deadlock, but I ran into this in a regtest setup where a bunch of subscriptions were made, while some script notifications could be processed in parallel. My test failed sporadically with the electrum client locking up completely and adding this drop made the tests consistently pass again.

ACKs for top commit:
  afilini:
    ACK aa0b957818, makes a lot of sense!

Tree-SHA512: b1bbea71fb56a189081b9aa602f768ef50d349a6ad6f3a3f64264259954a541fee85cad84461afeafe1ba17e11950c18fdcadb7c47a5fa1b3ce2fa2ac1cdcdc0
2022-08-18 11:42:34 +02:00
Alekos Filini
c34fde5698
Revert "Handle EOF in the reader thread"
This reverts commit acc05c3666 which
caused many failures in BDK. It was released as part of `0.10.3`, which
has now been yanked from crates.io
2022-08-18 11:39:56 +02:00
Sebastian Kung
aa0b957818
Client: Drop script subscriptions to free lock
This fixes a supposed deadlock when the reader thread receives a script
subscription notification from the server before it receives a
subscribing response
2022-08-16 22:21:47 +02:00
Alekos Filini
737cedb74e
Make the socks module public 2022-08-08 11:52:26 +02:00
Alekos Filini
a148dfb9d1
Merge bitcoindevkit/rust-electrum-client#76: Implement timeout for socks connection
7493630ed8 Implement timeout for socks connection (Riccardo Casatta)

Pull request description:

  To achieve this we have to include a modified socks library, with supports for
  timeout

  Remove the error `BothSocksAndTimeout` which isn't needed anymore

ACKs for top commit:
  afilini:
    ACK 7493630ed8

Tree-SHA512: ec1b1eba739bd954ba7811eef603cf60f3ba29d7efcf98a9eadc8dcb9b67a49fce364760718faf7b860e78b7f9eebdc4da65783e7af47792573d32cd6c76ff10
2022-08-08 11:51:00 +02:00
Alekos Filini
195d23accd
Bump version to 0.10.3 2022-08-08 11:38:27 +02:00
Alekos Filini
0d77c1860f
Merge bitcoindevkit/rust-electrum-client#78: Handle EOF in the reader thread
acc05c3666 Handle EOF in the reader thread (Alekos Filini)

Pull request description:

  Instead of ignoring empty lines we should return an error, because it means we are at EOF.

  Fixes #70 and hopefully also #67

ACKs for top commit:
  RCasatta:
    ACK acc05c3666

Tree-SHA512: e92b27610c91a419cc0f71ecd77205fdaeed592b50e38c42fd8cde805773f4e9e8eeda75ba14f73002d6ae20a70986f981741e6a69d1a89cf61971c174614951
2022-08-08 11:32:41 +02:00
Alekos Filini
acc05c3666
Handle EOF in the reader thread 2022-08-03 11:24:41 +02:00
Riccardo Casatta
7493630ed8
Implement timeout for socks connection
To achieve this we have to include a modified socks library, with supports for
timeout

Remove the error `BothSocksAndTimeout` which isn't needed anymore
2022-08-02 14:52:47 +02:00
Alekos Filini
d9668c86f4
Bump version to 0.10.2
Some checks failed
CI / Test (push) Has been cancelled
2022-08-01 12:32:49 +02:00
Alekos Filini
e9bee5a46d
Merge bitcoindevkit/rust-electrum-client#73: Update build badge to use GitHub badge
d8e339c4c1 Update build badge to use GitHub badge (dandroid)

Pull request description:

  The current build badge using Travis is not working anymore.
  This PR uses the badge from GitHub instead.

ACKs for top commit:
  afilini:
    ACK d8e339c4c1

Tree-SHA512: c08b5dc4b0d6bc0915843d95bfcf84c62317bb8a210f219feca31ce622b2f2b1241ae7987f5c395a980c6b2b3defc48227d43e8491e1adeafadc6e71ecde0db1
2022-08-01 12:31:01 +02:00