Commit graph

568 commits

Author SHA1 Message Date
Kristaps Kaupe
9dbad65b9f
Merge JoinMarket-Org/joinmarket-clientserver#1678: Refactor: move bitcoin unit conversion functions from ob-watcher.py to jmbitcoin
6e5cdc81ae Refactor: move bitcoin unit conversion functions from ob-watcher to jmbitcoin (Kristaps Kaupe)

Pull request description:

  Get rid of `satoshi_to_unit_power()` and `satoshi_to_unit()` in `scripts/obwatch/ob-watcher.py`, move that code where it belongs, to `src/jmbitcoin/amount.py`, with the rest of bitcoin unit conversion functions.

Top commit has no ACKs.

Tree-SHA512: 5d61d6148d283607a9fd8296788d409f9c86c7ca99a47e0c99ecf8ea6504214e867f94b3f889cd0e17aee0533b50115df32a1e6a75bd1326fe0e6ce9aa19e8ef
2024-03-12 11:18:22 +02:00
Kristaps Kaupe
6e5cdc81ae
Refactor: move bitcoin unit conversion functions from ob-watcher to jmbitcoin 2024-02-28 13:33:04 +02:00
Kristaps Kaupe
904b780b80
Unify cli user input code where limited range of answers are allowed 2024-02-22 20:29:38 +02:00
Kristaps Kaupe
053e9d882c
Release notes and version for v0.9.11
Co-authored-by: Marnix <93143998+MarnixCroes@users.noreply.github.com>
2024-02-20 21:48:33 +02:00
Kristaps Kaupe
cde6b4ca9a
Fix no amount entered message (can be sats too, not only BTC) 2024-02-14 12:58:06 +02:00
Kristaps Kaupe
d89dcdeaf8
Remove convert_old_wallet.py script
Old wallet format isn't used for years and script is broken since
removal of pyaes dependency. If somebody still needs it, he can use
older JoinMarket version to do conversion.
2024-02-01 21:38:46 +02:00
Kristaps Kaupe
cb6077498c
Qt: Remove donation link from "About" dialog 2024-01-27 03:23:39 +02:00
Kristaps Kaupe
8319870345
Merge JoinMarket-Org/joinmarket-clientserver#1636: Allow absurd fee override when setting tx fee manually
196a097667 Allow absurd fee override when setting tx fee manually (Kristaps Kaupe)

Pull request description:

  When user manually specifies `--txfee` with `sendpayment.py`, he likely knows what he is doing. So allow there fees above `absurd_fee_per_kb` setting. But still ask for user confirmation as he could possible made a mistake, for example, added some extra zeros to the value.

Top commit has no ACKs.

Tree-SHA512: 2155c38a483fd6392153bf42b2ea87cb9395f0da289cc2743602493df9e924a1d621688704a46d179e3e574ce41e82ced26b62331157ac2c3d1481931a334ace
2024-01-22 15:49:33 +02:00
Kristaps Kaupe
3d568376a9
Remove unnecessary check for Python 3.7+ 2024-01-20 11:22:31 +02:00
Kristaps Kaupe
196a097667
Allow absurd fee override when setting tx fee manually 2024-01-17 16:45:23 +02:00
Kristaps Kaupe
c990a4da6b
Allow fee bump tx not signalling BIP125 if mempoolfullrbf is enabled 2023-11-24 12:38:15 +02:00
Kristaps Kaupe
b65a5f35af
Update version to 0.9.11dev 2023-08-30 01:07:49 +03:00
Kristaps Kaupe
9f10af3adf
Release notes and version for v0.9.10 2023-08-28 22:55:22 +03:00
roshii
4e5d894007 Remove imports from future and past 2023-08-07 07:58:28 +02:00
roshii
dd0176e68d Check wallet lock file before asking for password
Co-authored-by: Wukong <BitcoinWukong@proton.me>
2023-08-03 10:39:46 +02:00
Kristaps Kaupe
34c0c451d5
Add -l/--label-change option to sendpayment.py to automatically label change address 2023-04-12 23:11:28 +03:00
Kristaps Kaupe
2c4c3d3eb9
Merge JoinMarket-Org/joinmarket-clientserver#1457: Signal BIP125 opt-in RBF for non-cj sends by default
907f1b0603 Signal BIP125 opt-in RBF for non-cj sends by default (Kristaps Kaupe)

Pull request description:

  This seems to be direction where everybody is going. Wasabi Wallet 2.0 does this, Electrum does this. I see no downsides here.

  Before this you could signal opt-in RBF only from `sendpayment.py`, but not Qt GUI.

  Will be more useful after #1019 is merged, but power users already can use other tools to construct replacement transactions.

ACKs for top commit:
  AdamISZ:
    tACK https://github.com/JoinMarket-Org/joinmarket-clientserver/pull/1457/commits/907f1b060353dfbbfdf31ebc85f2ecb3c3b209fe

Tree-SHA512: 8909263e983fb17bac8cfea17532b391ad502f1a69e3079b1e1361177659628ede5de2eb85ed8fbbb7395bfd270a8b5f3d8916817033baa0b81561787bffe876
2023-03-25 21:43:44 +02:00
Kristaps Kaupe
907f1b0603
Signal BIP125 opt-in RBF for non-cj sends by default 2023-03-20 01:52:13 +02:00
Tim Akinbo
eeb362be6c
added bumpfee.py script for bumping fees for rbf transactions
refactoring to improve readability and testing

added support for taking the fee from multiple owned outputs as needed

added unit tests

removed same mixdepth restriction for inputs

added option for specifying which output to deduct fees from

added additional test cases

refactoring: moved tx_vsize to jmbitcoin package

added a sanity check to ensure that the transaction id supplied belongs to our wallet

fixed a linting error
2023-03-08 17:39:09 +00:00
Adam Gibson
55285e3847
update version 0.9.10dev 2023-02-02 09:34:22 -06:00
Adam Gibson
9574cfc42f
release notes and version for v0.9.9 2023-01-29 13:02:31 -06:00
Kristaps Kaupe
4f0eebc68d
Apply all current shellcheck suggestions to rest of the scripts 2022-12-29 08:52:36 +02:00
Carl Dong
11ddec7841 docs: Remove now-confusing mentions of virtualenv 2022-11-07 13:50:39 -05:00
Adam Gibson
501b5f0dac
Merge #1301: ob-watcher: tackle stale orders by first removing all of them
ace9996 ob-watcher: tackle stale orders by first removing all of them (Tim Akinbo)
2022-10-08 14:55:27 +01:00
Kristaps Kaupe
d6d40df606
Allow amounts below DUST_THRESHOLD (0.00027300 BTC) for non-cj direct sends 2022-09-28 17:20:29 +03:00
Kristaps Kaupe
9d9035b43f
Fix sendpayment without amount argument, BIP21 only
Fixes bug introduced with 83c6bc053a
2022-09-25 15:08:24 +03:00
Kristaps Kaupe
46013d2ef4
chmod +x scripts/jmwalletd.py 2022-09-17 20:56:49 +03:00
Adam Gibson
f1f3972aa1
update version to 0.9.9dev 2022-09-15 14:53:57 +01:00
Adam Gibson
a7e3eed318
add release notes and version for 0.9.8 2022-09-13 16:48:40 +01:00
Adam Gibson
ed6f745372
update version for 0.9.8dev 2022-08-28 18:17:46 +01:00
Adam Gibson
28df2fc0e4
add release notes and version for 0.9.7 2022-08-28 13:58:16 +01:00
theborakompanioni
2b277b0ff2
fix(ob-watcher): consistent orderbook.json response 2022-08-18 23:26:02 +02:00
Adam Gibson
524cbda886
update Qt for new tumbler algo 2022-07-31 12:29:01 +01:00
Adam Gibson
75c444e9b2
Update wallet_rpc for new tumbler code 2022-07-29 17:53:43 +01:00
Adam Gibson
d0bf888971
Remove mixdepthsrc from options, more tests 2022-07-29 13:01:59 +01:00
Adam Gibson
d3dc9d7bbd
Change tumbler algo to cycle and add tests
Prior to this commit, the tumbler algorithm assumed that destination
mixdepths of INTERNAL transactions were incremented by 1, but the
underlying taker code uses (mod maxmixdepth) logic always. This commit
takes the decision to make the usage of the wallet "purely" cyclic, that
is, not only the Taker object but also the tumbler algorithm now always
treat the wallet as a cycle. This is not problematic in a tumbler
algorith (or any other schedule generation algorithm), as long as we use
the strict rule of "always exit each mixdepth with a sweep", which the
tumbler always did and this commit does not change.
Also, and importantly, several much more detailed tests of the tumbler
schedule generation have been added.
2022-07-25 22:02:55 +01:00
Kristaps Kaupe
83c6bc053a
Allow bitcoin: prefix for addresses with sendpayment.py 2022-07-08 17:21:43 +03:00
PulpCattel
72bf4474dd Script: Add bond-calculator.py
Add a new helper module to calculate fidelity bonds values and stats, and a script to use it.
The goal is to give as much information as possible to the user before
committing to a fidelity bond.
2022-06-16 17:47:56 +00:00
Tim Akinbo
ace9996d8e ob-watcher: tackle stale orders by first removing all of them
when checking for timed-out counterparties (or refreshing the
orderbook), stale entries are preserved because those peers
disconnected prematurely. This fix prevents that issue by
first removing all entries before requesting for the orderbook.
2022-06-07 06:36:17 +00:00
Adam Gibson
5b38ea509c
Merge #1266: Display the account xpub in QT interface
d95e279 Display the account xpub in QT interface (Wukong)
2022-05-24 17:02:24 -05:00
Wukong
d95e279d98 Display the account xpub in QT interface 2022-05-16 18:59:20 -07:00
Wukong
015cb4aa20 If there is unavailable fund, display 2 balances: total balance and unlocked balance.
For frozen balances, display a label "FROZEN" in the status notes.
For unconfirmed balances, display a label "PENDING" in the status notes.

Both FROZEN and LOCKED balances are considered unavailable balances, while PENDING balance is considered available balance.
Because it is possible to broadcast a transaction that spends unconfirmed balance, while a user has to manually unfreeze
the balance or wait until the timelock has expired before they can use FROZEN or LOCKED balances.
2022-05-12 18:05:08 -07:00
Wukong
e4f249ad4b Show QR code for xpub
Show QR code for xpub so that mobile client can easily create a watch-only wallet by scanning the QR code
2022-05-10 22:27:18 -07:00
Adam Gibson
7254149353
update version for 0.9.7dev 2022-05-08 23:02:07 +01:00
Adam Gibson
4c9c8d1f3c
Add release notes and version for 0.9.6 2022-05-07 13:40:04 +01:00
Adam Gibson
044bef6fff
Change default fidelity bond exponent settings.
Closes #1247.
This consists of an inclusion of the bond value exponent into the config
that the user can alter, and a change of that from 2 to default 1.3.
Also updates the fidelity bond documentation to account for those
changes, including the units used in ob-watcher, but not the calculation
of fidelity bond attack resistance (which remains a TODO).
2022-05-03 17:24:00 +01:00
Kristaps Kaupe
8d7d82f15c
Add local Tor autostart to missing scripts 2022-04-08 14:35:36 +03:00
Adam Gibson
e915daef88
Passive mode for ob-watcher bots on onion-mc
Prior to this commit, running ob-watcher with
an onion-type message channel configured would result
in the bot attempting to connect to all the makers,
which is bad. This happened because the internal logic
of the onion message channel is that receivers of privmsgs
will be sent peer info from the directory, so that they can
immediately respond p2p if they succeed in outward connecting.
But for bots who do not intend to engage in a coinjoin interactive
protocol, like ob-watchers, this is absolutely not the desired outcome.
After this commit, a bot can specify mode "PASSIVE" in the call to
get_mchannels(), which results in the OnionMessageChannel object only
creating non-directory remote peer objects of type OnionPeerPassive,
instead of OnionPeer, which means they never try to connect to those
remote peers.
2022-04-06 09:52:49 +01:00
Adam Gibson
52eeeb09b9
Merge #1182: Only onion message channels
5cc1695 Disconnection logic fixes, add btcnet to handshake (Adam Gibson)
830ac22 Allow taker peers to not serve onions + bugfixes. (Adam Gibson)
fd550ee Onion-based message channels with directory nodes (Adam Gibson)
2022-04-05 17:32:14 +01:00
Adam Gibson
5cc1695154
Disconnection logic fixes, add btcnet to handshake
Also, exports JMMakerClientProtocol for custom directory node scripts
(stored in the custom-scripts repo).
Modify default config with 2 signet and mainnet directory nodes to
start.
Handles unreachable directory nodes with a human readable error and
adjusts connection timeouts to be realistic.
Changes wording in Qt notifications from "IRC" to message channel.
Updates docs, new directory node information.
2022-04-03 14:54:46 +01:00