mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-10-14 00:59:33 +00:00

* [DEV-307] Implemented adding pending registry transactions. * [DEV-307] Implemented a skeleton for the sub-network registry algorithm. * [DEV-307] Implemented the serialization/deserialization logic for pending sub-network transactions. * [DEV-307] Implemented marking sub-network registry transactions as successfully registered. * [DEV-307] Implemented clearing pending sub-network entries and writing registered sub-networks. * [DEV-307] Added comments for all the dagio functions. * [DEV-307] Fixed a couple of bugs and added a test for checking serialization/deserialization of pending sub-network transactions. * [DEV-307] Implemented getting a registered sub-network's gas limit. * [DEV-307] Updated sub-network announcement transaction validation rules. * [DEV-307] Specified what is validated. * [DEV-307] Added initialization for lastSubNetworkID. * [DEV-307] Renamed extractValidSubNetworkRegistryTxs to validateAndExtractSubNetworkRegistryTxs to better reflect what it does. * Dev 303 implement block finality (#139) * [DEV-303] Implement block finality * [DEV-303] Add finality tests * [DEV-303] Make finality tests use maybeAcceptBlock * [DEV-303] Only check finality rules if we are fastAdd mode * [DEV-303] replace hasBiggerFinalityScoreThan checks with .finalityScore() * [DEV-307] Forgot to actually create the sub-network buckets. * [DEV-307] Wrote a full-flow test for sub-network registry and fixed a couple of bugs that it had uncovered. * [DEV-307] Took firstSubNetworkID out of dagconfig.Params. It's unnecessary there. * [DEV-307] Added persistance for dag.lastSubNetworkID. * [DEV-307] Moved sub-network stuff to their own files. Got rid of firstSubNetworkID. Replaced SubNetworkReservedLast with SubNetworkUnreservedFirst. Added ErrSubNetworkRegistry. * [DEV-307] Added a newline at the end of dag_test.go. * [DEV-307] Renamed previousFinalityPoint to initialFinalityPoint. * [DEV-307] Moved sub-network IO stuff to subnetworks.go and subnetworks_test.go. * [DEV-307] Merged dbPutRegisteredSubNetworkTx and dbRegisterSubNetwork. Fixed a too-big allocation and a block double-processing bug. * [DEV-307] Simplified the serialized representation of a slice of transactions. * [DEV-307] Fixed comments.