chia-blockchain/chia/server
Adam Kelly e9bf0ec12b
Reply type decorator (#8276)
* Check types of messages returned from other peers

* Check message type data structures at startup, check that no peeer messages that expect replies are broadcast, and dynamically check return types of messages that do expect replies.

* Type hint protocol message type check functions

* lint

* typo

* add replay_type decorator

* add api reply decorations

* typo

* Don't check non full-node broadcast messages

* Distinguish internal vs peer protocol error
Added Changelog
Moved static check to import time
Moved protocol timeouts to chia/protocols/protocol_timing.py
Comment typos
Rename create_request -> send_request
Comment that INVALID_PROTOCOL_MESSAGE is bannable, not temporary

* Call static check at module import time

* Rename message_response_ok

* Improve protocol checking for outgoing message validation

* Type-o

* reset submodule

Co-authored-by: almog <almogdepaz@gmail.com>
2021-09-20 11:31:15 -07:00
..
__init__.py git mv src chia 2021-04-04 21:41:39 -07:00
address_manager_store.py execute the sqlite pragmas only once, at the lever where the database is opened. Also, say FULL instead of 2, to make it clearer what the pragma is doing (#5993) 2021-09-15 10:57:13 -07:00
address_manager.py Makes linter happy (#2483) 2021-05-12 17:31:28 -07:00
connection_utils.py git mv src chia 2021-04-04 21:41:39 -07:00
introducer_peers.py attempt to save time hashing PeerInfo objects in introducer (#1990) 2021-04-17 09:25:40 -07:00
node_discovery.py Disable sqlite sync (#8319) 2021-09-17 10:47:34 -07:00
outbound_message.py git mv src chia 2021-04-04 21:41:39 -07:00
rate_limits.py Fullnode related changes from wallet protocol and unharded derivation (#8522) 2021-09-18 10:27:34 -07:00
reconnect_task.py git mv src chia 2021-04-04 21:41:39 -07:00
server.py Reply type decorator (#8276) 2021-09-20 11:31:15 -07:00
ssl_context.py git mv src chia 2021-04-04 21:41:39 -07:00
start_farmer.py Keyring passphrase protection (#7249) 2021-08-04 12:46:55 -07:00
start_full_node.py git mv src chia 2021-04-04 21:41:39 -07:00
start_harvester.py git mv src chia 2021-04-04 21:41:39 -07:00
start_introducer.py git mv src chia 2021-04-04 21:41:39 -07:00
start_service.py service singleton (#6735) 2021-06-24 11:10:46 -07:00
start_timelord.py git mv src chia 2021-04-04 21:41:39 -07:00
start_wallet.py Keyring passphrase protection (#7249) 2021-08-04 12:46:55 -07:00
upnp.py Fullnode related changes from wallet protocol and unharded derivation (#8522) 2021-09-18 10:27:34 -07:00
ws_connection.py Reply type decorator (#8276) 2021-09-20 11:31:15 -07:00