Commit Graph

19 Commits

Author SHA1 Message Date
Arvid Norberg b759958d13
fix indentation issue in message send retry logic. factor out retry coroutine (#3629) 2021-05-04 22:28:58 +09:00
Arvid Norberg 912dc84663
don't increment counters for outgoing messages blocked by the rate limit. (#3518)
This was causing a problem where outbound messages, blocked by the rate limiter,
would still increment the counters as-if they had been sent. This, in turn,
could cause other message types to get blocked becuase the rate limiter thought
we had sent a lot of the other (blocked) message type.
2021-05-03 11:18:29 -07:00
Mariano Sorgente 5ce1bfc34c
Don't retry respond_peers message (#3508) 2021-05-03 18:58:17 +09:00
Mariano Sorgente 75d75de190
SES could corrupt DB. Also don't cancel a task which could lead to corrupt memory. (#3237) 2021-04-30 16:11:05 -04:00
Yostra 5f9f63155d
Add lock, keep cache consistent (#3051)
* execute task decorator

* use blockchain lock

* indentation

* lint

* execute_task
2021-04-29 16:13:00 +09:00
Mariano Sorgente cb054ef72b
Hopefully reduce chances of nonce collision (#2161)
* Hopefully reduce chances of nonce collision

* No collisions
2021-04-28 13:34:32 -04:00
Yostra b3cc6bfe93 retry 2021-04-23 00:53:08 -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 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
Arvid Norberg f074f517e6
ping the introducer at least once on startup (#2214) 2021-04-20 15:20:09 -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
Florin Chirica ae911f53c4
Wallet sleep before finding connections. (#1968) 2021-04-16 13:31:36 -07:00
Yostra a142f10cfd
Init as None (#1814)
* init as None

* lint

* fix import from asyncio

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2021-04-11 20:35:51 -07:00
Yostra 06e871c5d5 cancel safely 2021-04-11 18:42:13 -07:00
Mariano Sorgente 876692631a
Fix issue with error handling in timelord. Show infusion rate for all… (#1716)
* Fix issue with error handling in timelord. Show infusion rate for all timelords (even slow ones), and fix logging for rate limiting

* Fix another issue

* Further improvements in crashes, and better counting

* Don't error if we cannot infuse

* flake8

* more flake8

* Improvements for not the fastest timelord

* Don't double count

* Don't double count (again)
2021-04-06 19:48:46 -07:00
Yostra 43c02e513a use wal and full sync mode 2021-04-06 18:22:01 -07:00
Yostra a69abb1717 don't start with api requests before ready 2021-04-06 17:50:25 -04:00
Mariano 691534f3fe Removes warnings by renaming some protocol messages. Also improves error handling for timelord. 2021-04-04 23:54:11 -07:00
Richard Kiss f2b577dda1 `git mv src chia` 2021-04-04 21:41:39 -07:00