Commit Graph

4701 Commits

Author SHA1 Message Date
almog b1bdc3dc56 switch log level back 2021-05-27 18:51:09 +03:00
almog 149e16403b switch log for fixing ci 2021-05-27 18:31:16 +03:00
almog 37a4d74855 short batch sync 2021-05-27 16:40:40 +03:00
athena9 34caa75f99
Changed 'not checking subdirectory' message from info to debug. (#6058)
Co-authored-by: Chris Han <chris@arctic.blue>
2021-05-26 12:56:19 -07:00
Arvid Norberg 7800dbb58c
Cleanup shutdown (#6011)
* ignore signals in subprocesses

The sub-processes started by ProcessPoolExecutor will also receive SIGINT when the main process receives it. This results in the signal handler running in every subprocess and fail to create the task to close all connections. They print this error to stdout

* cleanup UPnP shutdown

make an explicit call to UPnP shutdown() (which joins the thread). Improve logging a bit

* wait for initialize_weight_proof task when shutting down
2021-05-26 12:18:12 -07:00
Michael Mann 39aebe7b14
update permissions (#6061) 2021-05-26 11:33:26 -07:00
Nikolaj Kuntner cb1e5bdddf
rpc code simplifications (#6059)
* init

* nicer end to elif chain

* newlines after returns in elif chain

* pass comments

* error_msg

* simple error res
2021-05-26 11:15:26 -07:00
Nikolaj Kuntner 0b3124821f
bytes formatting simplify (#6021)
* init

* Add dash in README

* add more test cases

* whitespace around ==

* explicit return

* add another large test case
2021-05-26 11:11:44 -07:00
Arvid Norberg ee35d85ad8
store tasks used to initiate peer connections (#5557)
to ensure they are kept alive and to be able to wait for them if we hit the upper limit on number of pending outgoing connections
2021-05-26 11:06:55 -07:00
Arvid Norberg 203232e429
add profiler to wallet process (#6019) 2021-05-26 11:01:17 -07:00
Almog De Paz bbb02566ce
wallet complete blocks, check trusted peer (#6027)
* check is trusted peer

* clean
2021-05-26 10:51:01 -07:00
Arvid Norberg a522745ff1
rename semaphore variables to not be confused with mutexes (#5604) 2021-05-25 13:16:30 -07:00
Don Kackman af49bc32bd
call core init if needed when `-c` is specified (#4823)
* call core init if needed when `-c` is specified

* check and propagate return codes
2021-05-25 13:15:44 -07:00
Ruslan Skorb 9e21716965
Add format_bytes(bytes:) function to convert bytes to human readable string. (#5449) 2021-05-24 22:14:29 -07:00
ChiaMineJP 0fffed06f9
Support -f and -p options for plot creation via daemon API (#5209)
* Support -f and -p options for plot creation via daemon API

* use request.get for -f/-p options

* Added -c option handling

* Fixed lint error
2021-05-24 21:59:39 -07:00
Matt Hauff 280488da7d
That's not a private key (#5636) 2021-05-24 13:26:21 -07:00
Arvid Norberg 2ddc48d0b9
remove unused get_block_records() function (#5016)
* remove unused get_block_records() function

it's only used by one test. It's also a dangerous function since the whole chain may become very large, and may not fit in memory

* fixup tests

* fixup test
2021-05-24 12:02:54 -07:00
x1957 c1f54cb13a
Update harvester_api.py (#5185)
remove unnessuary time.time()
2021-05-24 11:59:34 -07:00
Gian Luca Decurtins 19216dcf3e
Keep mnemnic as secret as possible (#5690) 2021-05-24 11:58:07 -07:00
ChiaMineJP bc439fea7c
Removed dead code (#5244) 2021-05-24 11:55:19 -07:00
Arvid Norberg 78f73b3d55
demote DNS failure log to a warning (#5771) 2021-05-24 11:53:31 -07:00
Nikolaj Kuntner 9aecb3cd4f
mozilla typo fixes (#5303)
* refactor is_fee_enough

* fix typo

Co-authored-by: Nikolaj Kuntner <>
2021-05-24 11:52:37 -07:00
elliottback 6f06f047a5
Add an explicit error message (#4758)
* Add an explicit error message when mnemonic words are not in the dictionary; should help users self-service issues like #3425 faster.

* fix lint

* fix lint x2
2021-05-21 18:14:49 -07:00
Gene Hoffman 9e9097b116
Chia Blockchian 1.1.6 (#5644)
* edited CHANGELOG

* Minor edits to CHANGELOG

Co-authored-by: Lipa Long <lipalong@Lipas-MacBook-Pro.local>
2021-05-20 19:28:09 -07:00
Florin Chirica bf3ffa6eeb
Initial commit. (#5627) 2021-05-20 15:03:59 -07:00
Adam Kelly c3424ba655
Update gui (#5623)
Co-authored-by: Adam Kelly <aqk@aqk.im>
2021-05-20 12:49:44 -07:00
Almog De Paz f1120d9d5d
Different lock for compact proofs (#5539)
* test

* compact proof lock

* lint

* remove wrong commit

* remove wrong commit

* check vdf info for ip and sp

* return if no proof to replace
2021-05-20 11:51:58 -07:00
Mariano Sorgente 431f15bf1a
Do not assert not spent (#5612) 2021-05-20 10:46:02 -07:00
Mariano Sorgente a76446eba9
Speedup normal sync and wallet sync (#5590)
* Correctly return from bytes without parsing

* Huge speedup for wallet sync

* Lint

* Only construct CoinRecord when necessary

* Punt on creation of coin

* Removing warning log

* Flaky test

* Finally fix flaky test
2021-05-20 10:42:22 -07:00
Florin Chirica 4ad8d9dcef
Speedup connections 2. (#5421)
* Decrease sleeps.

* Wait 30 minutes before retrying address.

* Address comments.

* Address comments.

* Sleep in node discovery if we don't need connections.

* Rename sleeps.

* Lint.

* Refactor sleeps.

* Don't query introducers at startup.
2021-05-20 10:38:35 -07:00
Adam Kelly 15d4938a8c
Please add comments (#5565)
* Please add comments

* Fix issue

* More blocks

Co-authored-by: Adam Kelly <aqk@aqk.im>
Co-authored-by: Mariano <sorgente711@gmail.com>
2021-05-20 11:40:36 +09:00
Mariano Sorgente ac59ec52c6
Fix pending transaction issue, and use a different lock to prevent ho… (#5549)
* Fix pending transaction issue, and use a different lock to prevent holding blockchain lock

* Force re-run of tests
2021-05-19 18:19:52 -07:00
Mariano Sorgente 5ce56bce6d
Don't use a global (#5553)
* Don't use a global

* Only construct once
2021-05-19 17:41:53 -07:00
Adam Kelly c9f942b5fe
Improve time_out_assert messages (#5561)
Co-authored-by: Adam Kelly <aqk@aqk.im>
2021-05-19 16:41:38 -07:00
Bill Blanke 207c83eabb tweak timeouts 2021-05-19 16:25:58 -07:00
Bill Blanke 18ccda9310 wait after farm_new_transaction_block 2021-05-19 13:44:09 -07:00
Bill Blanke 50ff07e687 wait after farm_new_transaction_block 2021-05-19 13:40:36 -07:00
Bill Blanke a0927402ac wait after farm_new_transaction_block 2021-05-19 13:30:42 -07:00
Mariano a352be20ee Fix error log and handling of reject message 2021-05-20 04:51:52 +09:00
Yostra 108647112c
Wallet (#4887)
* spent height

* handle generator reorg

* tx cache

* coin cache

* rebuild cache if write fails

* save last few messages new_peak while syncing

* don't use dupe func

* tx reorg test

* lock not needed

* lint

* lock

* modify properly

* this shouldn't hit a disk ever

* use same number

* notify wallet only once, lock when getting a balance

* lock only if unspent coin records is None

* assert spent

* lint

* Add test for prev generator

Co-authored-by: Mariano <sorgente711@gmail.com>
2021-05-19 12:06:48 -07:00
Mariano Sorgente d46cd8eb07
Revert "sets up wallet before running farm summary (#3235)" (#5546)
This reverts commit 880df53f72.
2021-05-19 12:05:12 -07:00
justinengland 55dbe2676a working false 2021-05-18 17:33:46 -06:00
justinengland f9cf76e0bc moving printed output inside of if to know if the command runs 2021-05-18 17:33:46 -06:00
justinengland 576bc017a9 == vs === 2021-05-18 17:33:46 -06:00
justinengland 5ed477ecf0 == vs is 2021-05-18 17:33:46 -06:00
justinengland 8bff69490a adding : 2021-05-18 17:33:46 -06:00
justinengland 9873679680 adding false setting to reset back to mainnet 2021-05-18 17:33:46 -06:00
Gene Hoffman 0af10068ce
Clearly prohibit root from installing the GUI (#5232)
* GUI should not build or run as root

* Use id -u instead

* shellcheck
2021-05-18 11:40:26 -07:00
Will Bendick 880df53f72
sets up wallet before running farm summary (#3235)
* sets up wallet before running farm summary

* fixes call to summary

* moves wallet peers discovery to after backup is initialized
2021-05-18 11:38:06 -07:00
Mariano Sorgente 1c808b6c29
Ms.spikes4 (Fix duplicate signage points) (#4844)
* Fix duplicate signage point spikes

* Block record not hash

* Fix bugs in signage point cache

* Fix test, and log in debug level

* Change transaction logging to info

* More logging improvements
2021-05-16 11:33:47 -07:00