dvf / blockchain-book

213 stars 69 forks source link

node.py api layer #3

Open Qleoz12 opened 3 years ago

Qleoz12 commented 3 years ago

Hi, is agreat resource the code in this repo, I would like to ask you if is a good aproach to create an api.py file to handle the comunication from a frontend app with the node, I see the method handle_connection->handle_message, so I think i will use handle_message()method to send a message (ping or transaction messages for test this project) in an docker network for see the P2P working and have the nice functionallity from your project https://github.com/dvf/blockchain/blob/68066d648244ce2b7e2d1cbd16f9255363f94712/blockchain.py#L232, im junior using python, but thanks for this repo and some advice for enable functionalities as API