Commit Graph

4709 Commits

Author SHA1 Message Date
Yostra 328e4cd276
Blockchain timestamps fix (#2302)
* incomplete push for debugging

* block timestamp in mempool

* rename

* farm tx block

Co-authored-by: matt <matt@chia.net>
2021-04-21 16:43:02 -07:00
Arvid Norberg 572110b7df
delay 5 seconds after connecting the introducer to give it a chance to add any peers we got from it (#2299) 2021-04-21 12:17:08 -07:00
Arvid Norberg e55988479b
More tests (#2295)
Co-authored-by: Mariano <sorgente711@gmail.com>
2021-04-21 11:17:21 -07:00
Mariano Sorgente c5595e280c
New puzzle hashes were not being created (#2270) 2021-04-21 10:45:43 -07:00
Almog De Paz 6af86811e5
fix unconfirmed tx race (#2266)
* add tx lock

* init lock

* call with async
2021-04-21 10:41:18 -07:00
Arvid Norberg 8c24306f88
exponentially back-off contacting the introducer (#2250)
* exponentially back-off contacting the introducer (until reaching 5 minute delay)

* bump introducer connection timeout from 10 to 30 seconds
2021-04-21 03:48:44 -07:00
Mariano 111edd71bc Also lock in removals 2021-04-21 18:17:40 +09:00
Mariano 9c11d41984 Remove blockchain lock 2021-04-21 18:06:43 +09:00
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