Skip to content
Snippets Groups Projects
Unverified Commit 09724735 authored by Hans Moog's avatar Hans Moog Committed by GitHub
Browse files

Refactor of the ledgerstate prior to merging the message- and value tangle. (#755)


* Feat: updated to latest hive.go

* Docs: added docs accoding to lint error

* Refactor: renamed config variables

* Ledgerstate Refactor: Address (#747)

* Feat: refactored address

* Fix: fixed some error handling logic

* test: Add Address unit tests

* fix: Fix typos

* Fix: fixed issues according to comments

* Refactor: made error messages more specific

* Feat: added base58 decode for specific addresses

Co-authored-by: default avatarHans Moog <hm@mkjc.net>
Co-authored-by: default avatarjkrvivian <jkrvivian@gmail.com>

* Refactor of the ledgerstate / Feat: Added Colors and ColoredBalances (#756)

* Feat: added Colors and ColoredBalances

* Refactor: changed things according to comments

* Refactor: changed tests

* Refactor: renamed bytes parameter to not collide with bytes package

* Update packages/ledgerstate/color.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

Co-authored-by: default avatarHans Moog <hm@mkjc.net>
Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Refactor of the ledgerstate / Feat: Added Signatures (#757)

* Feat: added models for the signatures

* Fix: fixed typo

Co-authored-by: default avatarHans Moog <hm@mkjc.net>

* Refactor of the ledgerstate / Feat: Added Conflict models for BranchDAG (#760)

* Feat: added conflict models

* Update packages/ledgerstate/conflict.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Update packages/ledgerstate/conflict.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Update packages/ledgerstate/conflict.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Update packages/ledgerstate/conflict.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Update packages/ledgerstate/conflict.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Feat: added suggestions

* Update packages/ledgerstate/conflict.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Update packages/ledgerstate/conflict.go

* Fix: fixed var naming error

Co-authored-by: default avatarHans Moog <hm@mkjc.net>
Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Refactor of the ledgerstate / Feat: Added Output models for UTXODAG (#762)

* Feat: added Output models

* Fix: fixed wrong comment for SigLockedColoredOutput

* Feat: refactored setters

Co-authored-by: default avatarHans Moog <hm@mkjc.net>

* Refactor of the ledgerstate / Feat: Added UnlockBlock models of Transactions (#763)

* Feat: added UnlockBlock models

* Fix: fixed errors in code according to comments

Co-authored-by: default avatarHans Moog <hm@mkjc.net>

* Refactor of the ledgerstate / Feat: Added Branch models (#776)

* Feat: Added Branch

* Feat: added CachedBranch model

* Fix: fixed wrong method signature for FromObjectStorage methods

* Update packages/ledgerstate/branch.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Update packages/ledgerstate/branch.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Feat: started to adjust according to comments

* Feat: adjusted according to comments

* Feat: more changed according to comments

* Fix: fixed receiver names

Co-authored-by: default avatarHans Moog <hm@mkjc.net>
Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Refactor of the ledgerstate / Feat: Added Input models (#782)

* Feat: added input models

* Fix: fixed errors

* Refactor: refactored comment

* Update packages/ledgerstate/input.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Fix: removed unnecessary pointer

* Fix: renamed variable and fixed comment

Co-authored-by: default avatarHans Moog <hm@mkjc.net>
Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Feat: Added model for Transaction (#802)

* Feat: Added model for Transaction

* Feat: refactored the test

* Docs: updated docs

* Docs: fixed typo in comments

* Fix: fixed format errors?

* Fix: fixed a bug with optional payloads

* Fix: fixed linting error?

* Fix: what the actual fuck

* Fix: is it still passing?

* Fix: git push

* Feat: added check for MaxOutputBalance

* Update packages/ledgerstate/transaction_test.go

Co-authored-by: default avatarChing-Hua (Vivian) Lin <jkrvivian@gmail.com>

* Fix: fixed erroneous constraints

* Feat: added several Clone methods to the existing model

* Update packages/ledgerstate/output.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Update packages/ledgerstate/transaction.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Update packages/ledgerstate/transaction.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Update packages/ledgerstate/transaction.go

Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Fix: fixed cloning issues

Co-authored-by: default avatarHans Moog <hm@mkjc.net>
Co-authored-by: default avatarChing-Hua (Vivian) Lin <jkrvivian@gmail.com>
Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>

* Feat: update hive.go

* Fix: fixed bug after merging

* Fix: Fixed bug with missing payload length (#871)

* Fix: fixed bug with missing payload length

* Fix: fixed missing type logic in collectivebeacon

* Fix: fixed parsing errors for two payloads

* Fix: fixed statement payload

* :arrow_up:

 Update drng image

Co-authored-by: default avatarHans Moog <hm@mkjc.net>
Co-authored-by: default avatarcapossele <angelocapossele@gmail.com>

* Feat: Implemented Markers for faster past cone checks (#821)

* Feat: started implementing markers

* Feat: added more stuff :P

* Feat: Fulfill marker(s) methods and add tests

* Feat: started implementing inheritance

* Feat: updated test

* Feat: intermediary commit

* Feat: updated to hive.go

* Fix: fixed compiler error

* Feat: added ParentReferences

* Fix: fixed some refactoring issues

* Feat: intermediary commit

* chores: Add comments

* fix: Fix sequence test

* fix: Fix test and comments

* Refactor: started refactoring the models

* Refactor: refactored names

* Feat: finalizing markers

* Feat: added comments and cleaned up the code :P

* Feat: added more features to the markers

* Feat: moved markers to its own package

* Feat: started adding checkreference method

* Feat: started adding unit tests

* Feat: refactored the API

* Feat: started making model threadsafe

* Feat: fixed issues with earlier commit

* Fix: fixed logic for inheriting future markers

* Feat: commit before additional refactor

* Feat: refactor finished

* Feat: markers finally work - only cleanup required

* Feat: started cleaning up the code and correcting comments

* Refactor: more refactors

* Refactor: reverted some changes

* Refactor: reverted some changes

* Refactor: updated objectstorage related settings

* Feat: made parentreferences thread safe

* Fix: fixed naming issue with prefix

* Refactor: some last refactors

* Refactor: final refactor of Markers

* Refactor: renamed marker package to markers

* Refactor: updated comments

Co-authored-by: default avatarHans Moog <hm@mkjc.net>
Co-authored-by: default avatarjkrvivian <jkrvivian@gmail.com>

* Feat: Implement the BranchDAG (#853)

* Feat: started implementing BranchDAG

* Feat: added storage options for ChildBranch storage

* Docs: started writing doc comments for the new methods and structs

* Feat: finished the ConflictBranch creation methods

* Docs: added missing doc comments

* Fix: removed superfluous concat

* Fix: fixed wrong error message

* Feat: implemented more logic

* Feat: implemented NormalizeMarkers

* Refactor: refactored errors to use cerrors

* Refactor: refactored the code

* Feat: implemented more storage accessor methods and models

* Feat: added a Prune method to the BranchDAG

* Feat: started adding propagation methods

* Refactor: refactored the code to make it more readable

* Feat: added missing String methods for the CachedObjects

* Feat: added InclusionState to replace confirmed/rejected/pending

* Feat: its really me

* Feat: added unit test for normalizedBranches

* Feat: added unit tests for SetPreferred

* Feat: added unit tests

* Feat: added more test + public methods

* Feat: implemented SetLiked method

* Feat: added more tests

* Feat: added Test for SetFinalized

* Feat: added more tests to increase code coverage

* Feat: added a picture for the test cases

* Feat: added MergeToMaster

* Fix: fixed bug in MergeToMaster

* Feat: added tests for MergeToMaster

* Fix: fixed MergeToMaster

* Refactor: refactored code

* Refactor: refactored the test

* Feat: fixed linter comments about files not being formatted correctly

* Feat: added variable for color to avoid erroneous golinter message

* Feat: added comment to MergToMaster

* Feat: refactored some code

* Feat: fixed golint errors and added RejectedBranch

* Feat: allowed to book branches with already normalized parents

* Feat: added a UpdateConflictBranchParents method

* Refactor: renamed preferred to liked and liked to monotonically liked

Co-authored-by: default avatarHans Moog <hm@mkjc.net>

* Feat/utxo dag (#922)

* Feat: started implementing BranchDAG

* Feat: added storage options for ChildBranch storage

* Docs: started writing doc comments for the new methods and structs

* Feat: finished the ConflictBranch creation methods

* Docs: added missing doc comments

* Fix: removed superfluous concat

* Fix: fixed wrong error message

* Feat: implemented more logic

* Feat: implemented NormalizeMarkers

* Refactor: refactored errors to use cerrors

* Refactor: refactored the code

* Feat: implemented more storage accessor methods and models

* Feat: added a Prune method to the BranchDAG

* Feat: started adding propagation methods

* Refactor: refactored the code to make it more readable

* Feat: added missing String methods for the CachedObjects

* Feat: added InclusionState to replace confirmed/rejected/pending

* Feat: its really me

* Feat: added unit test for normalizedBranches

* Feat: added unit tests for SetPreferred

* Feat: added unit tests

* Feat: added more test + public methods

* Feat: implemented SetLiked method

* Feat: added more tests

* Feat: added Test for SetFinalized

* Feat: added more tests to increase code coverage

* Feat: added a picture for the test cases

* Feat: added MergeToMaster

* Fix: fixed bug in MergeToMaster

* Feat: added tests for MergeToMaster

* Feat: started implementing BranchDAG

* Fix: fixed MergeToMaster

* Refactor: refactored code

* Refactor: refactored the test

* Feat: started implementing Book function

* Refactor: refactored the code

* Feat: added more models

* Feat: implemented accessor of the object storage

* Feat: implemented more logic

* Feat: fixed linter comments about files not being formatted correctly

* Feat: added variable for color to avoid erroneous golinter message

* Feat: added comment to MergToMaster

* Feat: refactored some code

* :white_check_mark: Add TestTransactionBalancesValid unit test

* :white_check_mark: Add TestUnlockBlocksValid unit test

* Feat: implemented some stuff

* :white_check_mark: Add TransactionInputs and InputsSolid unit test

* Refactor: refactored some code

* Refactor: refactored some code

* Feat: fixed golint errors and added RejectedBranch

* Feat: added first book transactions

* Feat: updated hive.go

* Feat: added some code

* Feat: allowed to book branches with already normalized parents

* Feat: added booking of happy case

* Feat: finished the booking logic

* :recycle: Refactor unit test

* Feat: cleaned up the code and refactored some stuff

* Fix: reverted accidental rename

* :white_check_mark: Add new unit tests

* :white_check_mark: Add TestOutputsUnspent

* Feat: BookTransaction now returns the Branch

* Refactor: simplified code

* Feat: started implementing different logic for updating Branches

* Feat: added a UpdateConflictBranchParents method

* Feat: added update of ConflictBranch

* :bug: Fix several bugs

* :white_check_mark: Add more unit tests

* :bug: Fix SetLazyBooked mutex bug

* :white_check_mark: Add more unit tests

* :bug: Add LazyBookedConflictsBranchID initialization

* :white_check_mark: Add TestBookRejectedConflictingTransaction

* :white_check_mark: Fix unit test

* :white_check_mark: Add TestBookConflictingTransaction

* :white_check_mark: Improve unit tests

* :construction:

* :white_check_mark: Add TestBookTransaction

* Refactor: refactored some code

* :white_check_mark: Add ExampleA and ExampleB unit test

* Add timestamp and pledgeIDs to transaction essence (#942)

* :white_check_mark:

 Add utxo exampleC unit test

* Refactor: removed unnecessary code

* Fix: fixed some smaller issues

Co-authored-by: default avatarHans Moog <hm@mkjc.net>
Co-authored-by: default avatarcapossele <angelocapossele@gmail.com>
Co-authored-by: default avatarLevente Pap <levente.pap@iota.org>

Co-authored-by: default avatarHans Moog <hm@mkjc.net>
Co-authored-by: default avatarjkrvivian <jkrvivian@gmail.com>
Co-authored-by: default avatarJonas Theis <mail@jonastheis.de>
Co-authored-by: default avatarcapossele <angelocapossele@gmail.com>
Co-authored-by: default avatarLevente Pap <levente.pap@iota.org>
parent e13f0926
No related branches found
No related tags found
No related merge requests found
Showing
with 7570 additions and 5 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment