5520 Commits
Author SHA1 Message Date
William AllenandGitHub 0e7cc5a883 adding 1.3.0 release notes to changelog (#10578)
* adding 1.3.0 release notes to changelog

* Typos. thx @paninaro

* Adding requested adjustments to changelog
1.3.0
2022-03-07 18:12:31 -07:00
Mariano SorgenteandGitHub 4bd5c53f48 Add fee to changing pool, and more PlotNFT syncing fixes (#10545)
* Add fee to changing pool, and more aggressive disconnect of untrusted

* Don't publish fee TX

* Lint

* Small plotnft related fixes

* More plotnft fixes

* Apply quexington suggestion

* correct param for in_transaction

* Support get_transaction and get_transactions in plotnft

* Re-add publish_transaction and add comment

* Don't rerun additions
2022-03-04 17:10:04 -08:00
ChiaMineJPandGitHub 816251ec0d Fix install-gui.sh (#10460)
* Fixed an issue where running  with gui git branch specified failed

* Fixed an issue where install-gui.sh failed if npm>=7 and NodeJS < 16 were installed

* Fixed inconsistent npm path issue

* Fixed typo
2022-03-04 14:06:13 -08:00
Richard KissandGitHub 4c345e2fa5 Add some logging. (#10556) 2022-03-04 14:05:12 -08:00
Florin ChiricaandGitHub 058eb33abb Resubmit peak to timelord for failure. (#10551)
* Initial commit resubmit peak to timelord.

* Change how toandle exception.
2022-03-04 14:04:52 -08:00
dustinfaceandGitHub 0909fe7672 benchmarks: Implement streamable data comparison (#10433) 2022-03-04 09:51:39 -08:00
cf54aae2b7 Wallet consistancy (#10532)
* use db transaction, -1 in synced up to height, delete unused funcitons

* use transaction info in key-val-store/pool-store

* cat stores

* db lock

* remove unused lock, set synced not always in transaction

* fix store tests

Co-authored-by: wjblanke <wjb98672@gmail.com>
2022-03-04 09:48:36 -08:00
Juraj OršulićandGitHub 05f9667018 Allow CAT autodiscovery, refactor CAT default naming (#10308)
* Allow CAT autodiscovery

* Add wallet autodiscovery test

* Use dict get for automatically_add_unknown_cats with default false

* Refactor name generation for new CATs into one place

* Remove hardcoded default cat wallet name from wallet rpc test

* initial-config.yaml comment nit
2022-03-04 08:27:15 -08:00
Mariano SorgenteandGitHub 7211d9d4f0 Detect hints correctly in the TX (#10543)
* Detect hints correctly in the TX

* Only support list hints
2022-03-04 08:25:22 -08:00
Kyle AltendorfandGitHub cce361c0c6 correct some comments to refer to CATs (#10548)
* correct some comments to refer to CATs

* one more

* and in a test
2022-03-04 07:53:50 -08:00
Kyle AltendorfandGitHub c6978f07b1 correct multiprocessing start method logging, add python_default (#10547)
* correct multiprocessing start method logging, add python_default

* todo -> regular comment
2022-03-04 07:46:54 -08:00
dustinfaceandGitHub 5ac986c004 pools: Drop redundant PoolWalletInfo.from_json_dict (#10524)
It exists the same way in its base class `Streamable`.
2022-03-03 16:42:48 -08:00
dustinfaceandGitHub aa6d4a7fb4 wallet: Reduce log level for Pulled from queue message (#10529) 2022-03-03 16:41:50 -08:00
Matt HauffandGitHub 8cf35716f5 Add incoming tx records when cancelling an offer (#10538)
* Add incoming tx records when cancelling an offer

* show fee on all txs
2022-03-03 13:06:00 -08:00
Chris MarslenderandGitHub 841754b444 Update URL for direct download of windows whl for upnp (#10540) 2022-03-03 10:28:02 -08:00
Kyle AltendorfandGitHub 50857caf8c make multiprocessing start method configurable (#10528)
* make multiprocessing start method configurable

* forkserver

* corrections

* fixup

* optional

* more optional

* stop attempting anchors in the yaml

* rework config handling

* comment
2022-03-03 10:27:36 -08:00
Mariano SorgenteandGitHub 36e95afc24 Hide balances until we are synced (#10501) 2022-03-03 08:36:03 -08:00
Arvid NorbergandGitHub 018b67f0ad improve the picking of free ports for tests (#10491) 2022-03-02 20:47:50 -08:00
JeffandGitHub 945bc5054c Updated background and icon positions. (#10531) 2022-03-02 18:16:54 -08:00
Kyle AltendorfandGitHub fc618ec1d2 catch up test_add_private_key() with dynamic ports (#10530) 2022-03-02 16:48:08 -08:00
JeffandGitHub 863036d03a Fix propagation of errors when adding a key with an invalid mnemonic (#10274)
* Fix propagation of error messages originating from the keychain server

* Test that adding key with an invalid mnemonic returns the expected error

* Added daemon tests for the add_private_key RPC. Reverted wallet_rpc_client test as the daemon test is better suited for GUI testing.

* Reformatting updates

* Formatting change as requested by the pre-commit gods.
2022-03-02 13:46:23 -08:00
Arvid NorbergandGitHub b76bf7b8a3 fix updating of sub-epoch-summary map (part of BlockHeightMap) when the entirey change, including genesis changes (#10486) 2022-03-02 12:50:06 -08:00
Mariano SorgenteandGitHub 206205b254 Abort trusted sync if a state update fails (#10523)
* Abort trusted sync if a state update fails

* Fix lint
2022-03-02 10:41:13 -08:00
JeffandGitHub 51dffd8501 Preserve existing pool payout_instructions when creating a PoolWallet (#10507)
* Preserve existing pool payout_instructions when creating a PoolWallet

* Updated the logged string when payout_instructions needs to be generated.

* Tests for update_pool_config

* isort

* Logging change, linter fixes, and more comments.
2022-03-02 10:25:13 -08:00
Mariano SorgenteandGitHub 9bf80b49e7 Only rewrite config when there is a difference (#10522)
* Only rewrite config when there is a difference

* Use variable
2022-03-02 09:43:11 -08:00
William Blanke da5962cf2e updated gui to 672cf2a74ade67a868df232772bd6358bce8dedf 2022-03-01 14:14:29 -08:00
William Blanke 13253def74 reverted to gui 800a0f6556b89e928b1cf027c996b5ed010a7799 2022-03-01 12:29:06 -08:00
William Blanke 4681a57f48 updated gui to e2202874e1cb922a57370a47b2aec7bcf152b57d 2022-03-01 10:52:42 -08:00
Mariano SorgenteandGitHub 90ebd287ab Fix method name (#10500) 2022-03-01 10:49:41 -08:00
dustinfaceandGitHub 695d9f7ef0 farmer: Cleanup request retry and some logs (#10484)
* farmer: Bump next update times regardless of the request results

* farmer: Drop additional "success/failure" log logic

We already print the PUT response in `_pool_put_farmer` the other parts 
just lead to confusion if the pool didn't implement the PUT correct.

* farmer: Print error responses from the pool with `WARNING` log level
2022-03-01 13:11:21 -05:00
Matt HauffandGitHub 941a91b36b Return the fees of an offer via RPC (#10480) 2022-03-01 11:39:00 -05:00
JeffandGitHub 098cbf8b73 Update the DMG background image (#10289)
* Update the DMG background image

* Updated with latest design.

* Updated background.tiff with latest design

* Fancier DMG customization support via build_dmg.js

* npm_macos -> npm_macos_m1

* Pass in the app path to build_dmg.js

* Peppering with __init__.py files to satisfy the precommit hook
2022-02-28 15:21:53 -08:00
Chris MarslenderandGitHub be2d8267aa Don't load initial data older than 5 days (#10481)
* When loading initial data, don't include IPs older than 5 days in the best timestamp dict

* Don't load version data for hosts older than 5 days
2022-02-28 15:21:31 -08:00
7fb26a7a14 Ms.unused code (#10453)
* Remove old backup stuff

* Remove references to CC (couloured coins) which is deprecated terminology

* removed no longer used import

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-02-27 23:34:37 -05:00
David BarrattandGitHub 0ba1347e6d Fix the year from 2021 to 2022 (#10462) 2022-02-27 10:08:38 -08:00
Mariano SorgenteandGitHub e8475fb194 GC connections in wallet (#10450) 2022-02-26 18:31:10 -05:00
d245790a17 Only update height if we have processed everything before that height. (#10415)
* Only update height if we have processed everything before that height.

* Remove debug return

* Forgot this file

* Better sorting of coin states, and disconnect peer if we are connected to trusted

* Fix disconnect, and don't mutate arguments

* Fix comment

* Update chia/wallet/wallet_node.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Update chia/wallet/wallet_state_manager.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Address comments

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-02-26 15:02:51 -05:00
Mariano SorgenteandGitHub d47119a773 Fix balance calculation so it works with future unconfirmed tx (#10447) 2022-02-26 14:55:19 -05:00
Arvid NorbergandGitHub bf4a632e6b simplify self_hostname. It doesn't need to depend on initial-config.yaml -> create_block_tools() -> global variable bt (#10371) 2022-02-25 08:09:46 -08:00
ChiaMineJPandGitHub ae61ed75a3 Stop assuming True == 1 (#10396)
* Stop assuming `True == 1`

* Removed unnecessary lines which confuses code readers
2022-02-25 08:08:50 -08:00
dustinfaceandGitHub fdb993cb10 streamable: Cache stream functions (#10419)
Apply the same pattern as we have for deserialization to serialization.

This avoids all those recursive runtime lookups for "how to stream this
object" which brings a nice speedup:

```
compare: benchmark
mode         | µs/iteration old | µs/iteration new | diff %
to_bytes     | 447.57           | 193.56           | -56.75

compare: full_block
mode         | µs/iteration old | µs/iteration new | diff %
to_bytes     | 110.32           | 61.09            | -44.62
```
2022-02-25 08:07:24 -08:00
Arvid NorbergandGitHub 874cc23c71 add db validate function to check consistency of blockchain database (#10398) 2022-02-25 08:00:16 -08:00
Kyle AltendorfandGitHub 43138bccf0 move build and twine to be dev deps rather than workflow installs (#10291) 2022-02-24 20:58:28 -08:00
Arvid NorbergandGitHub 7f3b61ddb4 slight simplification of interpreting the bytes received by the timelord. avoid redundant round-trips to strings (#10316) 2022-02-24 20:58:06 -08:00
Mariano SorgenteandGitHub b349c817fd Log the correct error (#10399) 2022-02-24 20:57:28 -08:00
xchdata.ioandGitHub a98d02d943 Fix pool puzzle comment typo (#10402) 2022-02-24 20:56:47 -08:00
Gene HoffmanandGitHub 0772f45c13 Only show -Trusted when a node is trusted (#10404) 2022-02-24 20:56:23 -08:00
Matt HauffandGitHub 0cf7dafbc1 Check that offer coins exist as well as not spent (#10409)
* Check that offer coins exist as well as not spent

* It shouldn't be an assertion

* Remove assert
2022-02-24 20:56:00 -08:00
Kyle AltendorfandGitHub 89740234e7 spawn (not fork) for multiprocessing (#10322)
* spawn (not fork) for multiprocessing

* just append _worker to existing process names

* return properly in getproctitle()

* black

* ignore for unhinted getproctitle()

* Add comments about the setting of the multiprocessing start method
2022-02-24 20:08:06 -08:00
dustinfaceandGitHub cdf48f7b29 benchmarks: Implement benchmarks for streamable (#10388)
* benchmarks: Implement benchmarks for streamable

* benchmarks: Collect iterations per time instead of time per iterations

* benchmarks: Add standard deviation to streamable benchs

* benchmarks: Add ns/iteration to streamable benchs

* benchmarks: Move object creation out or the runs loop

* benchmarks: Use `click.Choice` for `--data` and `--mode`

* benchmarks: Its µ

* benchmarks: Improve logging

* benchmarks: Drop unused code

* benchmarks: Use `process_time` as clock

* benchmarks: Add stdev `us/iterations %` + more precission

* benchmarks: Add `--live/--no-live` option to enable live results
2022-02-24 10:19:57 -08:00