Post #8525

7ab3f0d4cf6ca8f4aaf5009e5e1162d7c34bf1138a17e3ef2c9e8897dc9d78c6
4baadf303fb8e8ed1c5d50a9fbd800f8f3b207997d8298eada9332f357f68c2a
Signature not verified

This entry might be using an old signature, or it was signed by a key that does not exist on the server.

{"entry_date":1544574594,"post_data":{"edit_count":0,"last_edit_date":0,"last_edit_user_id":0,"message_sha512":"ce33ca09b8b7c55d6dda033a42ef48b5720093e068b346aedd1ca1649f5ae14a436f9eaa2c44ba0b800de32cc95758325c2e9a578824bf5a498068c568d6c522","node_id":6,"post_date":1544574115,"thread_id":1372,"title_sha512":"476676717c5bf0c3e46cc3322a6652250bc286aecc9062d74b6f6397433a3659196ad5c3cecaa21702c9c37647ab1142e75fe065aa37d314ca6426a3e0573fcf","user_id":27},"post_link":"https:\/\/factomize.com\/forums\/index.php?threads\/1372#post-8525"}
The entry content as it exists in the database. This should be verified against the blockchain entry.
Some thoughts on refactoring on the road to sharding
A lot of simplifications will come out of refactoring with new control flows. Paul, Clay and myself just got out of a meeting figuring out what kind of things we wanted to do with the refactoring hopefully over the next few months, if there is some community support for it. It would involve building a router that takes in p2p messages and then parcels them out to different threads that handle different aspects of the code. As part of this threading to have channels between more parts of the code, so that the actions are more message initiated rather than looking for things in queues.
One of the big problems according to Paul S is the mixing of follower and leader activities in the control flows, which has made for some awkward to debug code. The first step would be to delete the leader code (which is a small part of what the thing does, since all nodes need to do validation, which is harder.) The leader aspect sets the order of validated items. After getting the updated control flows to be message activated, adding back in the leader code would be done in a more controlled manner than it currently is in. Having things be more message based than timer based is one of the first steps on the way to sharding the system.
This is the raw content, without BBCode parsing.
Top