Commit graph

420 commits

Author SHA1 Message Date
Pantamis
993003e1dc Change mixdepth selection of yg-privacyenhanced
Overwrite the selection logic of mixdepth with the cyclic order one. Improve comment to explain why modulo is used only for the first available mixdepth.

Nit correction

Co-authored-by: Kristaps Kaupe <kristaps@blogiem.lv>
2021-04-06 23:00:42 +02:00
Adam Gibson
9d7f332dea
Correct formatting of sendtomany help message.
Also refactors IndentedHelpFormatterWithNL to be in
jmbase so it can be used by all scripts for future
updates.
2021-02-17 17:01:37 +00:00
Adam Gibson
2406118876
Merge #793: Update tests to use 1/0 not True/False addr type
47b2a9c Update tests to use 1/0 not True/False addr type (Adam Gibson)
2021-02-13 17:27:51 +00:00
Adam Gibson
09d906c25f
Merge #801: Fix #775, provide wtype to get_wallet_cls
67791ed Fix #775, provide wtype to get_wallet_cls (Nicolas Kuttler)
2021-02-13 17:26:49 +00:00
Kristaps Kaupe
cbf0f240d9
Merge #803: Vendorize js and css dependencies
fc74c94c35 add missing jquery lib to ob-watcher.py (undeath)
5f8219617d fix ob-watcher.py serving from relative location (undeath)
ddcfd608e4 simplify ob-watcher.py static file serving code (undeath)
693609e095 Vendorize js and css dependencies (3nprob)

Pull request description:

  Fixes #804

  While integrity checks could solve the first point, IMO it makes more sense to host these locally as well. This fixes that.

ACKs for top commit:
  kristapsk:
    ACK fc74c94c35

Tree-SHA512: f898b996943a6cdc47d84a2bbb61e6a591428a6388bb3b71853ce4a92dd139ff05d288544560d7f58903efaf242de39589839991c0595dd0db42ca007f5c838d
2021-02-13 11:45:46 +02:00
undeath
fc74c94c35
add missing jquery lib to ob-watcher.py 2021-02-11 14:32:17 +01:00
undeath
5f8219617d
fix ob-watcher.py serving from relative location 2021-02-10 21:38:15 +01:00
undeath
ddcfd608e4
simplify ob-watcher.py static file serving code 2021-02-10 17:54:07 +01:00
Adam Gibson
5c6eaafed1
update version to 0.8.2dev 2021-02-10 15:37:28 +00:00
3nprob
693609e095 Vendorize js and css dependencies 2021-02-10 22:59:35 +09:00
Nicolas Kuttler
67791ed3a0 Fix #775, provide wtype to get_wallet_cls 2021-02-09 19:06:57 +01:00
Adam Gibson
990faace9f
Add release notes and version for 0.8.1 2021-02-09 17:57:49 +00:00
Adam Gibson
47b2a9cf0b
Update tests to use 1/0 not True/False addr type
Prior to this commit, several test functions were using
"True" to flag internal and "False" to flag external for
the HD branch for the wallet, but we now use BaseWallet vars
ADDRESS_TYPE_[IN/EX]TERNAL (1/0), so this
is changed to explicitly reference those. There is no change
to the live code (which calls get_[internal/external]_addr).
In addition _index_cache updates in wallet are protected
with a wrapper function to ensure that the branch requested
is valid.
Tests pass both before and after this change.
2021-02-09 00:28:48 +02:00
Kristaps Kaupe
8526d73014
Add signet support 2021-01-30 22:12:00 +02:00
Kristaps Kaupe
184c27483d
Delete logs and wallets subdirectories from scripts directory.
They were moved to datadir long time ago.
2021-01-25 20:05:58 +02:00
dchoe
a490ddf3d1
Move YG settings to a config file
Allow YG settings to be saved to joinmarket.cfg.
Before this commit, yield generator settings were
set inside the python script, which is not good.
After this commit, the order of precedence for the
settings for a yield generator is:
* Command line arguments, or
* Settings in [YIELDGENERATOR] in joinmarket.cfg, or
* default config settings in jmclient.configure.py
2021-01-20 12:45:47 +00:00
Adam Gibson
462a95db1e
Allow schedule files without payment arguments.
Fixes #778. Prior to this commit, attempting to run
sendpayment with a schedule specified with -S would
fail due to a bug. This is now fixed, and the
sendpayment help message now accurately reflects the
facts that no arguments other than the wallet name are
needed in case -S is used.
2021-01-13 16:47:41 +00:00
ph0cion
6e51e8c4e3
Update README.md 2021-01-10 13:48:10 -05:00
Erik Arvstedt
00be3a3748 ob-watcher: Use relative links
Using relative links instead of root-relative links allows hosting ob-watcher with an
arbitrary URL path prefix, like 'orderbook' (https://example.com/orderbook).
2021-01-01 14:27:45 +01:00
Kristaps Kaupe
bcfa7eb4ea
Merge #758: genwallet p2sh -> p2wpkh
0cd8a73a26 genwallet p2sh -> p2wpkh (nixbitcoin)

Pull request description:

  This PR updates `scripts/genwallet.py` to generate native segwit/bech32 wallets in line with JoinMarket release v0.8.0.

ACKs for top commit:
  kristapsk:
    ACK 0cd8a73a26

Tree-SHA512: 00d4e843bbf12d93855f7741c1321b929278e28545fd02cce51dd6587b7f400fbaeae423f2568e23012271338ba4e1f1f0d8fab6b8fa93eedd5c6e90e48767e8
2020-12-13 19:39:11 +02:00
nixbitcoin
0cd8a73a26
genwallet p2sh -> p2wpkh 2020-12-13 15:59:44 +00:00
Adam Gibson
743de9cc9f
Merge #747: Fix bugs in utxo parsing in add-utxo.py
f21c905 Fix bugs in utxo parsing in add-utxo.py (Adam Gibson)
2020-12-09 16:02:07 -03:00
Adam Gibson
f21c905128
Fix bugs in utxo parsing in add-utxo.py
Fixes #743. The utility function `get_utxo_info`
tests the validity of the utxo string and the private
key, so there is no need to repeat this test; but we
need to add utxo data in binary format, so an option
is included to return it in this form.
The 4 ways of adding external commitments were tested
as all working after this commit: read in from json,
read in from file (csv format), read in from command
line and read from wallet.
Also fixes #741 - help message refers to correct
scriptpubkey types.
2020-12-09 15:59:25 -03:00
Adam Gibson
8cdf3e0a4a
address comments of @kristapsk and @PulpCattel 2020-12-01 16:25:45 +00:00
Adam Gibson
bb15aa0312
Quiet/make more accurate fee information in sends
Fixes #736. Prior to this commit, the 'relay fee floor'
was being shown at INFO level in the command line output,
but not the actual feerate paid (in direct send scenarios;
the coinjoin scenario is rather more complex since fees are
not known before negotiation flow, but estimates are printed).
After this commit, the output at INFO level for direct
sends shows specifically the feerate and then the actual fee,
with min relay feerate relegated to DEBUG messages only, for
cases of manual feerate setting.
There is also some minor cleanup in comments and coinjoin fee
estimate messages are removed for non-coinjoins.
2020-11-30 16:43:50 +00:00
Adam Gibson
13661583b9
update version to 0.8.1dev 2020-11-29 13:07:33 +00:00
Adam Gibson
a6c2d68810
Add release notes and version for 0.8.0 2020-11-27 11:50:41 +00:00
Adam Gibson
8f8c52afb2
Merge #729: Update commitments utility scripts
cc78dae Update commitments utility scripts (Adam Gibson)
2020-11-24 10:00:34 +00:00
Adam Gibson
d1ae07d81d
set default txfee contrib to zero, improve error message 2020-11-23 12:45:00 +00:00
Adam Gibson
cc78daead9
Update commitments utility scripts
This commit updates sendtomany.py and add-utxo.py to reflect
the new default wallet type (p2wpkh) and the new bitcoin
backend code; in doing this it slightly modifies the functions
in commitment_utils.py.
2020-11-13 17:33:44 +00:00
Adam Gibson
97f941e255
Merge #726: Remove twisted logging on testnet
44c9dcd Remove twisted logging on testnet (Kristaps Kaupe)
2020-11-13 10:06:03 +00:00
Kristaps Kaupe
6aa300ae8e
Fix relunit selector 2020-11-13 11:48:10 +02:00
Adam Gibson
ebd54d68e1
Bugfix: yg-privacyenhanced non-integer fees
Before this commit, the yg-privacyenhanced.py script,
which always randomizes coinjoin fees, was not including
`sw0absoffer` in the offertypes for which the randomized
fee must be kept as an integer, not as a decimal, resulting
in those offers being ignored by other bots.
After this commit, `sw0absoffer` (as well as `swabsoffer`)
offers always use integer coinjoin fees, as intended.
2020-11-12 15:44:55 +00:00
Kristaps Kaupe
44c9dcde65
Remove twisted logging on testnet 2020-11-11 04:33:41 +02:00
Adam Gibson
3c96d412e1
Several tweaks for bech32 orderbook, plus docs
* yg scripts set reloffer/absoffer only:

Prior to this commit, the yield generator user
level scripts required the user to specify offer
types depending on the wallet, but only 'rel/abs'
distinction is user choice; the other element
(native segwit, p2sh or p2pkh) must be defined
by the wallet, so we now call `wallet.get_txtype()`
to translate from reloffer/absoffer to sw0.. etc.

* Taker chooses nversion, nlocktime per wallet type:

Takers who are still using p2sh-p2wpkh wallets will
not want to flag their transactions with different
tx metadata than previous versions that are still
running, so we check the `get_txtype()` output to
decide which nVersion and nLockTime to use.
Also, the SNICKER locktime is reverted to zero as
according to draft spec.

* change offer type in test_coinjoin

* update docs for bech32 wallets
2020-11-10 15:28:05 +00:00
Jules Comte
9e66bc54af Update ob-watcher 2020-11-07 22:23:16 -05:00
Jules Comte
ab87db2477 Create native segwit v0 order type
Note: The defaults for the fake offer and yg-privacyenhanced remain
on nested segwit
2020-11-06 18:34:27 -05:00
Kristaps Kaupe
1b6beda013
Remove /shutdown from ob-watcher
1) It is bad, people run public orderbooks;
2) It is broken anyway, both by throwing exception and then reconnecting
   to IRC servers instead of shutdown;
3) Same can be achieved locally by killing / restarting ob-watcher.py,
   if somebody wants such functionality from web interface, some access
   control needs to be introduced.
2020-10-28 00:41:50 +02:00
Adam Gibson
db7dd77403
update version and release notes 0.7.2 2020-10-27 12:07:28 +00:00
Adam Gibson
3b4683527e
Merge #705: QR code support for BIP78 payjoin receiver in Qt GUI
7414959 QR code support for BIP78 payjoin receiver in Qt GUI (Kristaps Kaupe)
2020-10-18 16:42:11 +01:00
Adam Gibson
fa65f7e536
update version to 0.7.2dev 2020-10-15 15:31:33 +01:00
Kristaps Kaupe
7414959604
QR code support for BIP78 payjoin receiver in Qt GUI 2020-10-14 19:55:20 +03:00
Adam Gibson
c7ee7ecf71
bugfix: remove P2EP factory from joinmarketd 2020-10-14 15:48:01 +01:00
Adam Gibson
cdccb958b6
Add release notes and update version 0.7.1 2020-10-13 12:04:51 +01:00
Adam Gibson
68cf5de051
Merge #696: Fix relfee cjfee display issues caused by the use of float in ob-watcher.py
942ea58 Fix relfee cjfee display issues caused by the use of float (Kristaps Kaupe)
2020-10-10 14:32:43 +02:00
Kristaps Kaupe
942ea588bb
Fix relfee cjfee display issues caused by the use of float 2020-10-08 03:57:49 +03:00
Adam Gibson
5604857ec1
quit scripts gracefully on walletservice rpc startup failure 2020-10-07 16:05:37 +02:00
Adam Gibson
5af2d49a8a
handle Qt wallet load failure 2020-10-05 13:16:49 +02:00
Adam Gibson
a2aafd254d
Fixes #673. Shutdown cleanly on failure to access blockheight
Prior to this commit, in case an RPC failure occurred when
accesing the block height, the program would continue but the
wallet would be in an un-writeable state (for command line
programs, specifically yield generators; for Qt the shutdown
would occur).
This commit slightly cleans up the process of shutting down,
ensuring that duplicate shutdown calls do not result in
stack traces. It also ensures that also for command line
programs, the application will immediately shutdown if the
regular heartbeat call to query the block height fails, as this
risks inconsistencies in the wallet (though the previous
situation luckily did not result in this as the call to
BaseWallet.close() resulted in the wallet being read only).
A future PR should develop a more sophisticated approach to
RPC call failures that may allow the program to wait.

stopservice
2020-10-01 15:25:39 +01:00
Adam Gibson
6545f36d60
Merge #688: Add genwallet.py script
2f53c5f add create_wallet tests (Adam Gibson)
93f0a67 Add genwallet.py script (nixbitcoin)
2020-09-27 23:40:25 +01:00