Commit Graph
3983 Commits
Author SHA1 Message Date
Gene HoffmanandGene Hoffman ef0971458b Fix wallet send -m fees 1.0beta27 2021-02-11 14:02:30 -08:00
Gene HoffmanandGene Hoffman 94c3cb1a10 clvm_tools to 0.3.1 to fix the run/brun issue 2021-02-11 14:02:30 -08:00
Gene HoffmanandGene Hoffman 90b3e89acc Update GUI 2021-02-11 13:01:40 -08:00
Gene HoffmanandGene Hoffman 505876af3a Checkout main 2021-02-11 09:58:22 -08:00
Mariano SorgenteandMariano Sorgente 6689c0ba42 Logging 2021-02-11 21:19:41 +09:00
Mariano SorgenteandMariano Sorgente 726371bfd0 Fix wallet configuration bug 2021-02-11 21:19:41 +09:00
Mariano SorgenteandMariano Sorgente fec565930e Remove logging 2021-02-11 21:19:41 +09:00
Mariano SorgenteandMariano Sorgente 9a940ab11d Try to fix the consensus issus 2021-02-11 21:19:41 +09:00
Mariano SorgenteandMariano Sorgente fddd7ffa97 Change default backtrack sync to 20 blocks 2021-02-11 21:19:41 +09:00
Mariano SorgenteandMariano Sorgente ed0b8a45cb Don't double backtrack sync either 2021-02-11 21:19:41 +09:00
Mariano SorgenteandMariano Sorgente e88f634482 Less wasted validation 2021-02-11 21:19:41 +09:00
Mariano SorgenteandMariano Sorgente 13caeffdd0 Optimize out expensive hashes 2021-02-11 21:19:41 +09:00
Mariano SorgenteandMariano Sorgente 0c8cae71d4 Dont request many times 2021-02-11 21:19:41 +09:00
Mariano SorgenteandMariano Sorgente 201cc7a7f1 Optimize unfinished block 2021-02-11 21:19:41 +09:00
Gene HoffmanandGitHub e35e3305f3 Update changelog - remove cbor2 remnants - GUI main update (#897)
* Update changelog - remove cbor2 remnants - GUI main update

* Typo caught by @zhando
2021-02-11 00:04:00 -08:00
YostraandGene Hoffman b4b8d7de04 fix simulator 2021-02-10 23:47:28 -08:00
YostraandGene Hoffman 94d1266a88 fix gui 2021-02-10 22:19:07 -08:00
Mariano SorgenteandGene Hoffman c3f313587a Always close connection 2021-02-10 21:39:01 -08:00
Mariano SorgenteandGene Hoffman 8a8a807261 Supress errors 2021-02-10 21:39:01 -08:00
Mariano SorgenteandGene Hoffman e1a3f66cee Fix wallet balance overflow 2021-02-10 21:39:01 -08:00
Mariano SorgenteandGene Hoffman 6450653bb6 Fix hardcoded prev hash 2021-02-10 19:25:31 -08:00
2c9f93fdaa Ms.block rewards (#890)
- Real block reward schedule:
Prefarm 21,000,000
0-3 years 2 chia per block
3-6 years 1 chia per block
6-9 years 0.5 chia per block
9-12 years 0.25 chia per block
after that 0.125 chia per block
- Fixed proof of space estimation formula (type). network space was overestimated by 2x
- Consolidated all genesis hashes into one GENESIS_CHALLENGE value
- Tables sub_block_record renamed into block_record, in anticipation of renaming of sub blocks to blocks
- Coin amounts stored as bytes since sqlite 3 does not fit 64 bit unsigned integers as ints
- Fix a bug with chia show and chia netspace
- Adds validation of end of sub slots
- RPC renames:
get_sub_block -> get_block
-parameter sub_block -> block
get_sub_block_record_by_height -> get_block_record_by_height
-parameter sub_block_record -> block_record
get_sub_block_record -> get_block_record
-parameter sub_block_record to block_record
get_sub_block_records -> get_block_records
-parameter sub_block_records -> block_records
get_unfinished_sub_block_headers -> get_unfinished_block_headers

Co-authored-by: Yostra <straya@chia.net>
Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
Co-authored-by: almog <almogdepaz@gmail.com>
2021-02-11 11:42:49 +09:00
RostislavandGene Hoffman 1004bd75b6 Fix handling of non-overflow block in full node store test 2021-02-10 17:11:49 -08:00
RostislavandGene Hoffman 2e6130cf6d Use fixed-size bytes100 object for compressed quadratic forms 2021-02-10 17:11:49 -08:00
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