Commit Graph
14659 Commits
Author SHA1 Message Date
RostislavandGene Hoffman 65dcae570e Change to compressed quadratic forms for VDFs
Using compressed representation of quadratic forms reduces their
serialized size from 130 to 100 bytes (for forms with 1024-bit
discriminant). This shrinks the size of VDF outputs and VDF proofs, and
it's a breaking change as compressed representation is not compatible
with older uncompressed (a, b) representation.

Compressed forms are also used in calls to chiavdf and in timelord's
communication with VDF client.

Update to version 0.14.0 of chiavdf and version 0.2.0 of test-cache.
Older versions of these do not support compressed forms.
2021-02-10 17:11:49 -08:00
Mariano SorgenteandGene Hoffman 5052eb730c Fix show issues 2021-02-10 10:30:50 -08:00
dc891f65e6 Test SerializedProgram (#883)
* Test SerializedProgram

* Test get_tree_hash() in Program and SerializedProgram

* lint

Co-authored-by: Adam Kelly <aqk@aqk.im>
2021-02-10 10:29:25 -08:00
b37e6e767b Add Announcements (#881)
* cherrypicked add announcement opcodes

* remove unused import in test_mempool

* fixed broken test

* fix black superlint errors

* simple convert of coloured coins to announcements

announcements message now type bytes

* removed assert coin consumed

* updated RL higher level puzzle

* fix RL wallet to use announcement instead of lock

* rebase add announcement to blockchain_check_conditions

* lint and re-enable tests

* remove lingering reference to coin_consumed

* fixed bug with block validation

* fix RL wallet

* -update CC to use more simple announcement message

* lint fix for announcement class

* remove breakpoint
improve announcement set checking
delete TODO

* deleted commented out code
use .extend() instead of nested for

* fix mempool tests and aesthetic changes for richard

* fix mempool and add to debug_spend_bundle

* fixed test_blockchain_transactions

* flake

* update test_mempool annouce tests to use height not subheight

Co-authored-by: Yostra <straya@chia.net>
2021-02-10 10:28:13 -08:00
YostraandYostra 9d064fea4a new tag 2021-02-10 00:53:59 -05:00
dabdce5df0 Ms.remove height (#880)
* First pass at removing height

* Fix test

* Remove useless files

* Rename sub_block_height to block_height everywhere

* A few more replaces. Don't migrate old addresses. Don't replace addresses

* lru cache for blocks

* cc fixes rebased

* race

* close check full node task

* lint

* more race

Co-authored-by: Yostra <straya@chia.net>
2021-02-09 20:49:47 -08:00
Gene HoffmanandGene Hoffman 593fe776d5 Migrate only 19+, rev DB, migrate for 27 2021-02-09 20:27:59 -08:00
Arvid NorbergandGene Hoffman d9bb9bf12c honor safe-mode setting in CLVM when validating mempool conditions 2021-02-09 16:02:43 -08:00
dependabot[bot]andGene Hoffman 89644b091d Update packaging requirement from ~=20.8 to ~=20.9
Updates the requirements on [packaging](https://github.com/pypa/packaging) to permit the latest version.
- [Release notes](https://github.com/pypa/packaging/releases)
- [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pypa/packaging/compare/20.8...20.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-09 13:08:41 -08:00
dependabot[bot]andGene Hoffman 79e4ca0e86 Update portalocker requirement from ~=2.2.0 to ~=2.2.1
Updates the requirements on [portalocker](https://github.com/WoLpH/portalocker) to permit the latest version.
- [Release notes](https://github.com/WoLpH/portalocker/releases)
- [Changelog](https://github.com/WoLpH/portalocker/blob/develop/CHANGELOG.rst)
- [Commits](https://github.com/WoLpH/portalocker/compare/v2.2.0...v2.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-09 13:08:23 -08:00
dependabot[bot]andGene Hoffman 8bd328a157 Bump pyyaml from 5.3.1 to 5.4.1
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.3.1 to 5.4.1.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/5.3.1...5.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-09 13:08:06 -08:00
Gene HoffmanandGene Hoffman 59c0ef1a52 install-gui.sh takes an arg to build the GUI from a different branch 2021-02-09 13:06:14 -08:00
Gene HoffmanandGene Hoffman 608736c228 gui submodule to use branch main 2021-02-09 11:32:02 -08:00
YostraandYostra 99d656ca88 trades 2021-02-09 13:07:24 -05:00
YostraandYostra 89eb231af5 blck 2021-02-09 13:07:24 -05:00
YostraandYostra b6b5996783 __ne__ 2021-02-09 13:07:24 -05:00
YostraandYostra d81dd150e4 cc and program 2021-02-09 13:07:24 -05:00
YostraandMariano Sorgente 227d519038 wallet tx cache, don't increment but update if peer already sent to 2021-02-09 17:57:52 +09:00
YostraandMariano Sorgente 4b59c275fd don't sent to same peer multiple times 2021-02-09 17:57:52 +09:00
dependabot[bot]andGene Hoffman ac77813e1b Bump actions/cache from v2 to v2.1.4
Bumps [actions/cache](https://github.com/actions/cache) from v2 to v2.1.4.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...26968a09c0ea4f3e233fdddbafd1166051a095f6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-08 23:32:38 -08:00
Mariano SorgenteandGitHub ef83c95ef4 Ms.cbor3 [protocol breaking change] (#864)
- removes cbor and instead uses streamable (https://trello.com/c/anzukjLs/901-remove-cbor)
- data types checked for payload ids and function (https://trello.com/c/4kPt98as/921-data-types-not-checked-on-payload-ids-and-function-names)
- Compressed format for messages: 1 byte for the message type / function, 2 optional bytes for the payload id
- Optimization to not fetch transactions for a block if we already have them
- RejectBlock message
- Software version sent in the handshake message (although ignored now)
- Removed mempool hack, big blocks can now be made with this codebase
2021-02-09 16:14:37 +09:00
YostraandGene Hoffman 3442e9aac3 close session 2021-02-08 19:37:00 -08:00
YostraandGitHub 0438efbdd5 Task lifecycle (#868)
* cancel tasks on close

* cancel pending from disconnected peer

* peer node id
2021-02-08 19:31:36 -08:00
Gene HoffmanandGene Hoffman 45c85c0030 Update GUI for CVE-2020-28477, crowdin 2021-02-08 18:28:54 -08:00
YostraandGitHub 17db396a02 Update clvm (#871)
* update clvm

* flk
2021-02-08 18:15:41 -08:00
Gene HoffmanandGitHub fb16787bd8 intall-gui.sh now respects changes in the chia-blockchain-gui submodule (#867)
* Check whether -gui submodule has been modified

* shellcheck
2021-02-08 14:01:40 -08:00
e55844f847 CLI send transaction and get transction (#849)
* CLI send transaction and get transction

* get_transaction in help

* Add fingerprint to suggestion

* Remove bad file checked in

* Add serialized program to unhashable types

* Print size of mempool and min fee, optimize excessive name computation

* Fix log

* lint

Co-authored-by: Gene Hoffman <30377676+hoffmang9@users.noreply.github.com>
2021-02-08 15:14:46 +09:00
Gene HoffmanandGitHub d9396d4308 cryptography 3.4.1 has a toxic interaction with keyrings on linux (#862)
* cryptography 3.4.1 has a toxic interaction with keyrings on linux

* black setup.py
2021-02-07 21:50:07 -08:00
Gene HoffmanandGitHub 0febb5136b GUI to a separate repo (#859)
* GUI to a separate repo

* correct repo name, codeql to just python

* fetch-depth: 0 is indeed needed

* remove debug ls's

* Switch to a submodule

* update blockchain gitignore

* Return omitted cd to install-gui.sh
2021-02-07 20:39:59 -08:00
Gene HoffmanandGitHub 75a858c6a7 Up to cryptography 3.4.1 - better show error. (#857) 2021-02-07 19:30:32 -08:00
Almog De PazandGitHub 6ce855702b Fix merge (#853)
* fix merge

* fix merge
2021-02-07 14:30:29 -08:00
Gene Hoffman ae17601d10 Update Crowdin configuration file 2021-02-07 11:34:31 -08:00
arvidnandGene Hoffman eb1da3f8cc make the mempool cost calculation use serialized programs (and arguments) correctly. Add asserts to test that otherwise would fail 2021-02-07 08:21:52 -08:00
Mariano SorgenteandGene Hoffman 2b030bf4ae Fix issues with full node store and simplify 2021-02-07 08:20:31 -08:00
Mariano SorgenteandMariano Sorgente 5b867c96f7 WARNING py.test 2021-02-07 20:13:01 +09:00
Mariano SorgenteandMariano Sorgente d27732d0c3 Prevent double validation of blocks 2021-02-07 20:13:01 +09:00
Mariano SorgenteandMariano Sorgente 46de03f4d0 Increase timeout slightly 2021-02-07 20:13:01 +09:00
Mariano SorgenteandMariano Sorgente cdf6fcabc2 Fix test, and dont ignore failed transactions 2021-02-07 20:13:01 +09:00
Mariano SorgenteandMariano Sorgente 0fc0ca57cd Prevents double processing of transactions 2021-02-07 20:13:01 +09:00
Mariano SorgenteandMariano Sorgente 789721a184 Chia show more logging 2021-02-07 20:13:01 +09:00
Mariano SorgenteandMariano Sorgente f242458772 Less weight proof logging 2021-02-07 20:13:01 +09:00
Mariano SorgenteandMariano Sorgente b29a6334a8 Remove useless files 2021-02-07 20:13:01 +09:00
Mariano SorgenteandMariano Sorgente 6343b687fd Fix new_transaction slowdown issue 2021-02-07 20:13:01 +09:00
Mariano SorgenteandMariano Sorgente 7e4f52301b Fix double signage point in farmer 2021-02-07 20:13:01 +09:00
Mariano SorgenteandMariano Sorgente c91f2f81a4 Optimize peak processing 2021-02-07 20:13:01 +09:00
Gene HoffmanandGene Hoffman 165f7c8d57 Add MacOS Univeral wheels 2021-02-06 10:37:29 -08:00
eFishCentandGene Hoffman f1e3bf5050 Updated chia init -c [directory] changelog. 2021-02-05 18:00:25 -08:00
eFishCentandGitHub ce8cd61a78 Updated chia init -c [directory] to copy CA (#838)
* Add chia init -c option and help message.

* Add create_all_ssl function and refactor code to use it

* Help text on how to configure remote harvester.

* Updated changelog.

* black, mypy, flake8 bug fixes.

* Clarified help.

* More help message.

* make function copy_files_rec available throughout init.py

* Changed -c argument to require [directory] to copy CA

* Migrate config folder including subfolder ssl

* copy CA directory to root_path/config/ssl/ca

* Delete old key and crt files.

* Fix path.exists()

* Error message when -c directory doesn't exist.

* Make sure -c is a directory

* Updated changelog

* black, mypy, flake8 pass

* Grammar fix.
2021-02-05 12:31:42 -08:00
Gene HoffmanandGene Hoffman 39062a7596 Catch changelog up, update GUI locales 2021-02-05 12:26:36 -08:00
Zlatko FedorandGene Hoffman 8e92d47355 added sb height (full node connections)
updated timestamp format (last attempted proof)
added "add plot directory" (farm page)
updated last estimate description
2021-02-05 11:54:55 -08:00