Skip to content
Snippets Groups Projects
  1. Sep 21, 2020
    • Ching-Hua (Vivian) Lin's avatar
      refactor: Remove binary/messagelayer and replace with tangle package (#740) · b8c3db3a
      Ching-Hua (Vivian) Lin authored
      * refactor: Move messagelayer/message to tangle/
      
      * refactor: Modify the method receiver and annotate the error messages
      
      * refactor: Move messagelayer/payload to tangle/
      
      * refactor: Modify the method receiver and annotate err messages in payload
      
      * refactor: Move messagelayer/messagerequester to tangle/
      
      * refactor: Modify the method receiver in requester
      
      * refactor: Move messageparser/builtinfilter to tangle/
      
      * refactor: Move messageparser/ to tangle/
      
      * fix: Import fmt and minor fixes
      
      * refactor: Move messagefactory/ to tangle/
      
      * refactor: Move tipselector/ to tangle/
      
      * refactor: Rename method receivers in tipselector
      
      * refactor: Move messagelayer/tangle to tangle/
      
      * refactor: Rename method receivers and annotate error messages in tangle
      
      * refactor: Move messagelayer/test to tangle/
      
      * fix: Update to the develop branch
      
      * refactor: Create data payload in testing message creation
      
      * refactor: Use tangle package in gossip
      
      * fix: Fix :dog:
      
      
      
      * fix: Rename for consistency
      
      * fix: Move message related const from payload.go to message.go
      
      * refactor: Use single character for method receivers
      
      * fix: Fix the unit test by using the correct variable name
      
      * refactor: Use tangle package in spammer
      
      * refactor: Use tangle package in faucet
      
      * refactor: Use tangle package in networkdelay
      
      * refactor: Use tangle package in valuetransfer
      
      * refactor: Use tangle package in messagelayer plugin
      
      * refactor: Use tangle package in gossip plugin
      
      * refactor: Use tangle package in syncbeacon plugin
      
      * refactor: Use tangle package in syncbeaconfollower plugin
      
      * refactor: Use tangle package in webapi plugin
      
      * refactor: Use tangle package in issuer plugin
      
      * refactor: Use tangle package in pow plugin
      
      * refactor: Use tangle package in metrics plugin
      
      * refactor: Use tangle package in drng plugin
      
      * refactor: Use tangle package in prometheus plugin
      
      * refactor: Use tangle package in dashboard plugin
      
      * refactor: Use tangle package in integration tests
      
      * fix: Fix unit tests
      
      * refactor: Remove binary/messaglayer
      
      * Feat: merged marshal changes
      
      * Feat: removed superfluous test
      
      * Fix: fixed wrong comment
      
      * refactor: Annotate error messages in marshal functions
      
      * refactor: Import fmt package
      
      * refactor: Aggregate all filters into filter.go
      
      * refactor: Rename Factory to MessageFactory to clarify the functionality
      
      * refactor: Rename Parser to MessageParser to clarify the functionality
      
      * refactor: Rename Requester to MessageRequester to clarify the functionality
      
      * refactor: Rename Parse to FromMarshalUtil for naming consistency
      
      * refactor: Fix comments
      
      * refactor: Fix comments
      
      * fix: Use the correct function
      
      Co-authored-by: default avatarHans Moog <hm@mkjc.net>
      Unverified
      b8c3db3a
  2. Sep 16, 2020
    • Ching-Hua (Vivian) Lin's avatar
      refactor: Flatten messagelayer (#732) · 45a94bcd
      Ching-Hua (Vivian) Lin authored
      * refactor: Move messagelayer/message to tangle/
      
      * refactor: Modify the method receiver and annotate the error messages
      
      * refactor: Move messagelayer/payload to tangle/
      
      * refactor: Modify the method receiver and annotate err messages in payload
      
      * refactor: Move messagelayer/messagerequester to tangle/
      
      * refactor: Modify the method receiver in requester
      
      * refactor: Move messageparser/builtinfilter to tangle/
      
      * refactor: Move messageparser/ to tangle/
      
      * fix: Import fmt and minor fixes
      
      * refactor: Move messagefactory/ to tangle/
      
      * refactor: Move tipselector/ to tangle/
      
      * refactor: Rename method receivers in tipselector
      
      * refactor: Move messagelayer/tangle to tangle/
      
      * refactor: Rename method receivers and annotate error messages in tangle
      
      * refactor: Move messagelayer/test to tangle/
      
      * fix: Update to the develop branch
      
      * refactor: Create data payload in testing message creation
      
      * fix: Fix :dog:
      
      
      
      * fix: Rename for consistency
      
      * fix: Move message related const from payload.go to message.go
      
      * refactor: Use single character for method receivers
      
      * fix: Fix the unit test by using the correct variable name
      
      * Feat: merged marshal changes
      
      * Feat: removed superfluous test
      
      * Fix: fixed wrong comment
      
      * refactor: Annotate error messages in marshal functions
      
      * refactor: Import fmt package
      
      * refactor: Aggregate all filters into filter.go
      
      * refactor: Rename Factory to MessageFactory to clarify the functionality
      
      * refactor: Rename Parser to MessageParser to clarify the functionality
      
      * refactor: Rename Requester to MessageRequester to clarify the functionality
      
      * refactor: Rename Parse to FromMarshalUtil for naming consistency
      
      * refactor: Fix comments
      
      Co-authored-by: default avatarHans Moog <hm@mkjc.net>
      Unverified
      45a94bcd
  3. Sep 14, 2020
    • Hans Moog's avatar
      Feat: updated hive.go (#729) · 14592f27
      Hans Moog authored
      * Feat: updated hive.go
      
      * Feat: started refactoring parsing of entities
      
      * Feat: first changes due to hive.go new marshaling logic
      
      * Feat: fixed MessageMetadata
      
      * Feat: fixed Approver
      
      * Feat: updated MissingMessage
      
      * Feat: started updating first branch models
      
      * Feat: ported ConflictSet
      
      * Fix: fixed bug with Conflict
      
      * Fix: fixed some issues
      
      * Fix: fixed branchmanager refactor
      
      * Feat: refactored payload marshaling
      
      * Feat: finished reworking PayloadMetadata
      
      * Feat: finished refactoring PayloadApprover
      
      * Fix: fixed some more models
      
      * Feat: fixed some more issues
      
      * Fix: one model left :P
      
      * Fix: fixed last model
      
      * Feat: fixed test
      
      * Fix: fixed unused var bug due to debug
      
      * Feat: fixed something in faucet payload
      
      * Fix: fixed some issues
      
      * Fix: fixed a bug in the refactor
      
      * Feat: added debug output if error in drng test
      
      * :arrow_up:
      
       Update drand docker image
      
      Co-authored-by: default avatarHans Moog <hm@mkjc.net>
      Co-authored-by: default avatarcapossele <angelocapossele@gmail.com>
      Unverified
      14592f27
  4. Sep 07, 2020
  5. Jun 15, 2020
    • Jonas Theis's avatar
      Value tangle unit tests (#434) · ef1754f0
      Jonas Theis authored
      * Feat: initial commit
      
      * Feat: added setPreferred to TransactionMetadata
      
      * Feat: added a Conflicting() method to the transactionMetadata
      
      * Fix: fixed logic bug
      
      * Feat: refactored fcob
      
      * Refactor: refactored additional code
      
      * Fix: fixed a bug in ForeachConsumers
      
      * Refactor: cleaned up code
      
      * Feat: implemented FCOB consensus into the valuetransfer dapp
      
      * Refactor: refactored FCOB
      
      * Docs: added some additional comments
      
      * Docs: fixed comments
      
      * add branch manager conflict test
      
      * cleans failing test
      
      * Refactor: commit before branch change
      
      * Fix: fixed bug in AggregateBranches
      
      * assert aggr. branch IDs
      
      * expands branch conflict detection test
      
      * add visualisation of branch graph of test
      
      * Feat: added PayloadLiked Event
      
      * Refactor: fixed some missing comments + added liked to marshal
      
      * Feat: reworked the preferred and liked propagation
      
      * Refactor: cleaned up some logic
      
      * Refactor: simplified code
      
      * Refactor: cleaned up more stuff :P
      
      * Refactor: refactor
      
      * Feat: moved test + refactored fcob
      
      * adds more tests
      
      * fixes liked state not getting updated correctly of conflict members
      
      * adds additional liked/preferred propagation test
      
      * Fix: fixed missing preferred propagation to aggregated branches
      
      * Fix: fixed a few bugs in liked propagation
      
      * adapt to new hive.go version
      
      * upgrade hive.go
      
      * Feat: started implementing a wallet
      
      * Feat: extended wallet files
      
      * remove weird test
      
      * use mem db for tests
      
      * more tests
      
      * use store backed sequence
      
      * add option to use in-memory database
      
      * address review comments
      
      * First tests for individual components of AttachPayloadSync
      
      * Fix: fixed missing events in branchmanaer
      
      * Feat: propagate changes from branch to transaction
      
      * Add tests for checkTransactionOutputs
      
      * Feat: started implementing confirmed propagation
      
      * Fix: fixed unreachable code
      
      * Add more tests
      
      * Refactor: refactored some code according to wolfgangs review
      
      * Refactor: cleaned up the code according to DRY
      
      * Refactor: refactored according to wollac
      
      * Refactor: refactored according to wollac
      
      * Refactor: refactored according to wollac
      
      * Refactor: refactored the code to make it more readable
      
      * Refactor: added some doc comments + cleaned up some more code
      
      * :white_check_mark: adds orderedMap unit tests
      
      * :rotating_light: Fix linter warnings
      
      * test: Add queue unit tests
      
      * Add more tests
      
      * :lipstick: Adjust imports order
      
      * WIP more tests
      
      * :white_check_mark: Add TestBookTransaction
      
      * :white_check_mark: Update TestBookTransaction
      
      * Add more tests
      
      * :construction: WIP tests
      
      * :white_check_mark: Add TestCalculateBranchOfTransaction
      
      * :white_check_mark: Add TestMoveTransactionToBranch
      
      * :white_check_mark: Add TestFork
      
      * :white_check_mark: Add TestBookPayload
      
      * Add test for checkPayloadSolidity
      
      * :white_check_mark: Add TestSetTransactionPreferred
      
      * Add more tests
      
      * :white_check_mark: Fix Tangle test
      
      * Feat: started implementing lucas test cases
      
      * Feat: fixed some issued + further tests
      
      * Feat: started adding invalid txs check
      
      * Feat: added removal logic for invalid transactions
      
      * Refactor: removed Println
      
      * :white_check_mark: Add test for 2nd Reattachment
      
      * :white_check_mark: Add aggregated branches test cases
      
      * Feat: added a method to generate AggregatedBranchIDs
      
      * :art: Use GenerateAggregatedBranchID in test
      
      * Feat: refactored delete logic
      
      * Fix: fixed broken test
      
      * Feat: added final test cases for invalid txs / payloads
      
      * :construction:
      
       WIP
      
      * Value tangle concurrency tests (#451)
      
      * Add simple concurrency test
      
      * Add reverse and concurrent transaction and value object solidification tests and fix bug when value object was visited more than once
      
      * Add some documentation to make tests easily understandable
      
      * WIP propagation tests but fixed already couple of bugs
      
      * Fix: fixed some bugs
      
      * Feat: added propagation to inclusion states to tx and its outputs
      
      * Feat: finished the propagation down to the tx and its outputs
      
      * WIP propagation tests and fix bugs
      
      * Feat: fixed some issues and introduced a Debugger
      
      * Refactor: added a few comments
      
      * Split massive test file into slightly more digestible chunks
      
      * Clean up propagation tests
      
      * Feat: fixed bugs
      
      * Feat: enabled missing tests
      
      * Add some documentation and missing checks for aggregated branches
      
      * Clean up tangle tests
      
      * Fix: finalized wasn't propagated when a branch was rejected
      
      * WIP debugging concurrency bug of death
      
      * Feat: added more reliable fails in test case
      
      * Fix: fixes a race condition in solidification
      
      * Clean up test
      
      Co-authored-by: default avatarHans Moog <hm@mkjc.net>
      Co-authored-by: default avatarLuca Moser <moser.luca@gmail.com>
      Co-authored-by: default avatarWolfgang Welz <welzwo@gmail.com>
      Co-authored-by: default avatarcapossele <angelocapossele@gmail.com>
      Co-authored-by: default avatarjkrvivian <jkrvivian@gmail.com>
      Unverified
      ef1754f0
  6. May 08, 2020
    • Hans Moog's avatar
      Refactor / Cleanup Branchmanager (#380) · 3f27e3aa
      Hans Moog authored
      
      * Feat: started adding conflict checls
      
      * Feat: finished BranchConflicting function
      
      * Fix: fixed bugs in BranchesConflicting
      
      * Feat: InheritBranches now checks conflicts
      
      * Feat: completed AddBranch method
      
      * Feat: refactored InheritBranches
      
      * Refactor: refactored AddBranch
      
      * Feat: started implementing objectstorage in branchmanager
      
      * Refactor: refactored Parse functions
      
      * Feat: added KeyPartitions to branchmanager objectstorage
      
      * Refactor: refactored some code
      
      * Feat: added events to Branch
      
      * Refactor: refactored event logic
      
      * Refactor: removed unnecessary code
      
      * Refactor: replaced events with manager based implementation
      
      * Refactor: refactored branchmanager to update branches
      
      * Feat: removed unused property
      
      * Refactor: removed unused method (fork does everything)
      
      * Refactor: commit before branch change
      
      * Feat: added a method to update the parent branch
      
      * Feat: added SetModified in models
      
      * Feat: completed different logics
      
      * Feat: added ability to uncolor coins
      
      * Refactor: refactored some code + comments
      
      * Refactor: renamed ancestor to descendant :P
      
      * adds comments from meeting (#411)
      
      * Refactor: refactored some last stuff before merge
      
      * Feat: updated to latest hive.go
      
      * Feat: updated hive.go in tester
      
      Co-authored-by: default avatarLuca Moser <moser.luca@gmail.com>
      Unverified
      3f27e3aa
  7. Apr 29, 2020
    • Hans Moog's avatar
      Fix the golint-ci warning (#381) · 18dba17c
      Hans Moog authored
      * Fix: fixed some error must be last param
      
      * Refactor: continued refactoring according to golint
      
      * Refactor: addresses more golint warnings
      
      * Refactor: refactored error last
      
      * Fix: fixed hive.go
      
      * Refactor: refactored alot according to golang-ci-list
      
      * Refactor: intermediary commit
      
      * Refactor: refactored additional code according to golint-ci
      
      * Refactor: continued to refactor according to golint
      
      * Refactor: refactored according to golint
      
      * Fix: fixed last golinter reports
      Unverified
      18dba17c
  8. Apr 27, 2020
    • Hans Moog's avatar
      Refactor value transfer logic (#330) · ec373339
      Hans Moog authored
      * Feat: value transfers are working
      
      * Feat: tangle now detects invalid transactions
      
      * Refactor: refactored some code
      
      * Feat: finished unit test for value transaction
      
      * Feat: added ledger state (reads information from value tangle)
      
      * Refactor: refactored some code
      
      * Feat: finished refactoring isTransactionSolid method
      
      * Feat: added RealityId model for parallel reality based ledger
      
      * Refactor: moved Output to tangle and introduced branches
      
      * Refactor: refactored some code
      
      * Refactor: renamed "NEW" color
      
      * Feat: started adding branches
      
      * Feat: nothing works anymore :p Started to refactor
      
      * Feat: cleaned up tangle in valuetransfers
      
      * Fix: fixed most refactor related bugs
      
      * Feat: introduced branchmanager and utxodag
      
      * Refactor: cleaned up some code
      
      * Feat: introduced ledgerstate
      
      * Feat: balances get booked into branches
      
      * Feat: started implementing fork logic
      
      * Feat: added some more logic :P
      
      * Feat: commit before develop rebase
      
      * Fix: fixed comments from golangci-lint
      
      * Refactor: refactored moveTransaction logic
      
      * Refactor: refactor
      
      * Refactor: refactored valuetransfers to be a selfcontained app
      
      * Fix: fixed errors due to merge
      
      * Fix: fixed bug
      
      * Feat: added preferred/liked to branch
      
      * Feat: added a lot of branchmanager logic
      
      * Feat: implemented FPC in the valuetransfers DAPP
      
      * Refactor: refactored according to golint
      Unverified
      ec373339
  9. Apr 05, 2020
    • Hans Moog's avatar
      Message refactor (#322) · aae4b1ec
      Hans Moog authored
      * Feat: refactored message + started to add tests
      
      * Refactor: go mod tidy
      
      * Refactor: continued to refactor message
      
      * Feat: updated to last hive.go + added Signature() methid
      
      * Feat: go mod tidy
      
      * Feat: added mutex to the signature write in Bytes()
      
      * Fix: fixed Signature method
      
      * Feat: refactored message methods
      
      * Feat: refactored output
      
      * Fix: fixed signature mismatch in tangle factory methods
      
      * Refactor: go mod tidy
      
      * Feat: added solditification logic to value tangle
      
      * Feat: fixed some code related to objectstorage factories
      
      * Feat: model refactor
      
      * Fix: fixed a bug in the models of the valuetangle
      
      * Feat: refactored storageprefix framework
      
      * Feat: refactored some code
      
      * Refactor: additional refactor in OS logic
      
      * Refactor: refactored MissingPayload model
      
      * Refactor: refactored further models
      Unverified
      aae4b1ec
  10. Mar 28, 2020
    • Hans Moog's avatar
      Feat: started reworking output model (#311) · b9404478
      Hans Moog authored
      * Feat: started reworking output model
      
      * Refactor: refactored some of the model
      
      * Refactor: started to refactor some additional models
      
      * Refactor: started to refactor message layer
      
      * Refactor: still refactoring :/
      
      * Refactor: refactored some more
      
      * Refactor: some error messages are gone YAY
      
      * Refactor: refactor complete
      Unverified
      b9404478
  11. Mar 26, 2020
    • Jonas Theis's avatar
      Move marshalutil to hive.go (#303) · 6bd8e421
      Jonas Theis authored
      * Move marshalutil to hive.go
      
      * Adjust moved files from merge to use hive.go/marshalutil
      
      * Update go.mod
      
      * Change to use hive.go/marshalutil
      
      * Update go.mod
      Unverified
      6bd8e421
    • Hans Moog's avatar
      Modifications due to hive.go objectstorage refactor (#306) · 4204a171
      Hans Moog authored
      * Feat: initial commit
      
      * Feat: Added Consumer model and fixed some smaller issues in Attachment
      
      * Feat: Consumers get stored on transaction arrival
      
      * Feat: added TransactionMetadata to solidifer
      
      * Refactor: started refactoring according to hive.go changes
      
      * Feat: upgrade to latest hive.go
      
      * Fix: fixed some errors after refactor
      
      * Refactor: refactored factory method signature
      
      * Fix: fixed some bugs
      
      * Fix: more fixes
      
      * Fix: fixed some more stuff
      Unverified
      4204a171
  12. Mar 23, 2020
    • Hans Moog's avatar
      Feat: Refactor and cleanup some code (#301) · 490f10e3
      Hans Moog authored
      * Feat: refactored the address
      
      * Feat: started adding solidification of transferOutputs
      
      * Feat: cleaned up checker code
      
      * Feat: going to bed - good night world
      
      * Feat: refactored transferoutput package
      
      * Fix: fixed a bug from refactoring
      
      * Refactor: removed old transferoutputmetadata package
      
      * Refactor: started refactoring transfer package
      
      * Refactor: refactored transfer/id package
      
      * Refactor: moved transfer struct to new package
      
      * Refactor: fixed issues after refactor
      
      * Refactor: fixed sth
      
      * Refactor: continued to move files
      
      * Refactor: commit before migration of last refactored files
      
      * Refactor: another refactor before move
      
      * Refactor: refactor test
      
      * Fix: fixed some bugs connected to refactor
      
      * Refactor: continued refactor
      
      * Refactor: fixed some bugs
      
      * Refactor: does it work now?
      
      * Feat: added a method to generate a random transferid
      
      * Feat: rename transfer to transaction
      
      * Refactor: refactor according to new names
      
      * Refactor: continued to refactor transaction package
      
      * Refactor: moved payload id to payload package
      
      * Refactor: moved signatures to transaction package
      
      * Refactor: moved signature to transaction
      
      * Fix: fixed bug due to refactor
      
      * Fix: fixed bugs due to refactor
      
      * Refactor: fixed some bugs after refactor
      
      * Fix: fixed additional bugs
      
      * Fix: bug fix
      
      * Refactor: moved signature to signaturescheme package
      
      * Fix: fixed signatures test
      
      * Fix: fixed bug in tangle
      
      * Fix: fixed payloadmetadata test
      
      * Fix: fixed payload test
      
      * Refactor: moved payloadmetadata to payload package
      
      * Fix: fixed some refactor bugs
      
      * Fix: fixed a bug due to refactor
      
      * Fix: fixed broken test
      
      * Refactor: moved approver to payload package
      
      * Refactor: moved missingpayload to payload package
      
      * Refactor: refactored coloredbalance package
      
      * Fix: fixed bug due to refactor
      
      * Refactor: moved address signaturescheme to address package
      
      * Fix: fixed refactor bug
      
      * Feat: added missing outputs to tangle
      
      * Fix: fixed issues due to refactor
      
      * Refactor: started moving tangle classes to tangle package
      
      * Refactor: moved payloadmetadata to tangle
      
      * Fix: fixed bugs due to refactor
      
      * Refactor: moved TransactionMetadata to tangle package
      
      * Refactor: moved some files to tangle
      
      * Fix: fixed bug due to refactor
      
      * Feat: added TransactionMetadata storage
      
      * Fix: fixed some issues
      
      * Fix: fixed some issues
      
      * Fix: fixed missing release
      Unverified
      490f10e3
Loading