Commit Graph

4701 Commits

Author SHA1 Message Date
Yostra eb86104139 introducers 2021-04-21 00:29:33 -04:00
Yostra 1e42b5596b ports 2021-04-21 00:27:21 -04:00
Yostra 207aed704f mainnet now 2021-04-21 00:26:18 -04:00
Gene Hoffman 9ebad3152a
Remove smart wallets for now 2021-04-20 21:17:33 -07:00
Yostra b674f19203 fee part 2021-04-20 21:11:25 -07:00
Yostra eb57fa7a77 remove 2021-04-20 21:11:13 -07:00
Yostra 7dcea45926
Pass correct blocks (#2229)
* Pass correct blocks

* Fix `mypy` lint.

Co-authored-by: Richard Kiss <him@richardkiss.com>
2021-04-20 19:19:15 -07:00
matt 1b81c2f14f fix broken test 2021-04-20 18:18:24 -07:00
Mariano Sorgente 9fce41cfb7
Assert small messages (#2213)
* Assert small messages

* Update condition_tools.py

Add `TODO`.

Co-authored-by: Richard Kiss <him@richardkiss.com>
2021-04-20 17:51:48 -07:00
Richard Kiss 50f9d8b4c2 Add some ROM tests. 2021-04-20 17:08:27 -07:00
Adam Kelly bc5efbbee9 Test passing multiple arguments as arguments to block generators 2021-04-20 17:07:36 -07:00
Gene Hoffman 99c4ac3f09 Ubuntu 21.04 is out tomorrow 2021-04-20 16:29:30 -07:00
Arvid Norberg f074f517e6
ping the introducer at least once on startup (#2214) 2021-04-20 15:20:09 -07:00
Mariano Sorgente e62be6c422
Ms.block body tests (#2203)
* Start block body tests

* More tests

* More tests

* Improvements and security fixes to block body validation

* Revert bad test changes

* Fix check for ref list size
2021-04-20 12:18:16 -07:00
Gene Hoffman 1c62b1e4d7 Move Add rem to INFO log level, update GUI 2021-04-19 16:50:01 -07:00
Gene Hoffman f18eba5aca GUI for 1.1 testing 2021-04-19 14:14:54 -07:00
Yostra 827af0b3dc
Testnet5 (#2153)
* testnet5

* testent5
2021-04-19 17:14:30 -04:00
Richard Kiss 170d451b7c
ROM now outputs `(coin-spends . block-level-extras)` (#2149)
* Change input to ROM to `(coin-solution-inputs . extras)`.

* Add `deserializer` to `generator_for_single_coin`.

* Fix last test.

* ROM now outputs `(coin-spends . block-level-extras)`
2021-04-19 14:04:55 -07:00
Lipa 3313edd7b4
Did for merge (#2144)
* rebase DID off main

* fix indentation and imports

* lint fixes

* fix test_compilation paths for new puzzles

* added _init__.py for did_wallet

* mypy typing fixes

* included did_wallet in setup.py module list

* stored pubkey & puzhash so that recovery_spend can choose not take them

* black missing comma

* add wallet id to return in get recovery info

* remove bad try statement

* fix DID recovery

* lint formatting, blacked

* use theirs for macos installer

Co-authored-by: matt <matt@chia.net>
2021-04-19 16:16:31 -04:00
Almog De Paz e2459dae54
wp timeout from config (#2119) 2021-04-19 12:48:30 -07:00
Arvid Norberg dca9936f1d
fix typo in condition opcode calculation (#2142) 2021-04-19 12:47:37 -07:00
Mariano Sorgente a3fd085924
Ms.double blocks fix 2 (#2129)
* Fix issue with double blocks

* Fix shadow variable name, and lint

* improve debug log

* Fix case of empty block

* Test for recursive handling

* pytest level
2021-04-19 12:47:00 -07:00
Mariano Sorgente e04b1eec7c
Don't run clvm twice for each block (#2135) 2021-04-19 12:46:23 -07:00
Richard Kiss c3ebafdd31 Remove some obsolete comments. 2021-04-19 02:28:01 -07:00
Richard Kiss 212f5c7a61 Pass through `spend_level_extras`. 2021-04-19 02:28:01 -07:00
Richard Kiss 08b1dd3135 Improve format of `COIN_SPEND` output from ROM. 2021-04-18 23:40:06 -07:00
Richard Kiss b3880d7ea7 Simplify CSE input format.
It was `((parent amount) (puzzle solution))`.
It is now `(parent puzzle amount solution . *spend_level_extras)`
2021-04-18 22:57:00 -07:00
Florin Chirica 17ff9166da Blank line. 2021-04-18 20:36:22 -07:00
Florin Chirica 68a11e5161 Initial commit cherry-pick #1398. 2021-04-18 20:36:22 -07:00
Richard Kiss 166ab7c99a Remove the tree abomination. 2021-04-18 18:58:56 -07:00
Richard Kiss 44ba53550d Rewrite "ROM" in clvm, including deserialization. 2021-04-18 16:02:53 -07:00
Yostra 03304d22dc timestamp 2021-04-18 15:43:34 -04:00
Mariano Sorgente ee3dfb9eb1
Fix wallet performance if have many coins (#2047) 2021-04-18 10:52:07 -07:00
Mariano Sorgente bca75b2859
Fix freeze RPC (#2053) 2021-04-18 10:51:30 -07:00
Mariano Sorgente ad8847618a
Fix wallet reorgs, add cache for efficiency (#2022)
* Fix wallet reorgs, add cache for efficiency

* Fix lint
2021-04-18 18:30:22 +09:00
Mariano Sorgente 90dfdeb29a
Ms.signage points 2 (#2024)
* imporve signage points farmign

* Add test and more fixes

* Remove await

* Fix lint

* Unused import
2021-04-18 18:29:53 +09:00
ceerRep 5335222ce9
Fix typo (#1997) 2021-04-17 23:59:30 -07:00
Yostra 9878eb5588
not callable (#2015) 2021-04-17 23:58:48 -07:00
Yostra 03784c9cd5
WhenMainnet (#2011)
* timestamp

* freeze

* root

* prepare for mainnet

* lint

* update constants

* starting diff

* remove breakpoint
2021-04-17 23:57:58 -07:00
Mariano Sorgente 615d8af00d
Add limit for AGG_SIG condition message of 1024 bytes. Catch any exception thrown in mempool block creation, and catch any excepction making a block, then make an empty block. (#2013) 2021-04-17 23:57:07 -07:00
Richard Kiss f1be1714dc
Get `rl_wallet` clvm hex files loading. (#1999) 2021-04-17 12:02:08 -07:00
arvidn 6b4d060758 pass through max cost all the way down to where we execute the CLVM code 2021-04-17 10:34:13 -07:00
Arvid Norberg dc7071f459
attempt to save time hashing PeerInfo objects in introducer (#1990)
* attempt to save time hashing PeerInfo objects in introducer, by moving attributes from hash tables into the peer object itself, where it belongs

* only remove peers after a few failures in a row, not immediately. Ensure we don't check peers too frequently.
2021-04-17 09:25:40 -07:00
Gene Hoffman cb3dab5c89 Update to reverted blspy 1.0.2 2021-04-17 02:32:07 -07:00
Mariano Sorgente 5039a09ce6
Testnet3 (#1985) 2021-04-17 16:40:51 +09:00
Mariano Sorgente a6874bd2fe
Block compression and decompression (#1959)
* squash

* rebase cleanup

* cost

* Combine adam's and straya's PRs

* Fix cost test

* Fix another test

* Improve safety in reorgs

* Improve wallet in reorgs

* Improve wallet in reorgs

* Bug in reorg handling

* Bug in reorg handling, and fix test

* Band aid

* Comment out to pass test

* Comment out test

* rebase clean

* USe a list of reference generators

* create

* Integrate Block Compression

* Fix generator argument creation

* improve test

* update block tools

* Separate CompressorArg and GeneratorArg, improve type hints

* First crack at `list_to_tree`.

* Integrate generator arguments as tree

* End to end test for generators

* Fix linting issues, hook up things, and add a test

* tidy GeneratorArg test

* Get compression and decompression working in full node

* Fix fetching block generator from DB in multiprocess

* Fix edge case in reorgs, test many combinations of reorgs

* reduce max number of generators refs allowed in a block

* Apply Straya's fix for calculating the end index for generator args

* typos

* Run test_block_compression for a transaction large enough to force multiple input coins in the transaction

* Update generator compression tests for treearg change and decompressor offset args fix

* Fix merge conflict

* Fix test

* Fix full node tests

* Don't make full blocks

* fix lint

Co-authored-by: Yostra <straya@chia.net>
Co-authored-by: Adam Kelly <aqk@aqk.im>
Co-authored-by: Richard Kiss <him@richardkiss.com>
2021-04-16 23:13:22 -07:00
Richard Kiss 9872525f80 Remove message from `(x)`. 2021-04-16 21:22:46 -07:00
Rostislav Skudnov f9ac890090
Change mempool rules for replacing conflicting SpendBundles (#1971)
Require that a conflicting SpendBundle must not only have higher fee per
cost, but also increase the total fee by at least 0.00001 XCH and spend
all coins that were spent in the set of conflicting SpendBundles.

Refactor and update tests of conflicting spends (aka double spends) in
mempool.

Co-authored-by: Rostislav <rostislav@users.noreply.github.com>
2021-04-16 18:20:21 -07:00
matt-o-how 1d6bc440c7
Deleted blockchain_check_conditions (#1966)
* deleted blockchain_check_conditions and added optional timestamp to mempool_check_conditions

* removed unnecessary code

* change back to < for block height

* time now passes on equal to condition value
2021-04-16 14:02:06 -07:00
Florin Chirica ae911f53c4
Wallet sleep before finding connections. (#1968) 2021-04-16 13:31:36 -07:00