Skip to content

refactor(manager): Move contructor's parameter wallet_index and utxo_index to builder#504

Merged
msbrogli merged 1 commit intodevfrom
refactor/builder2
Nov 22, 2022
Merged

refactor(manager): Move contructor's parameter wallet_index and utxo_index to builder#504
msbrogli merged 1 commit intodevfrom
refactor/builder2

Conversation

@msbrogli
Copy link
Copy Markdown
Member

@msbrogli msbrogli commented Nov 3, 2022

Acceptance Criteria

  1. Remove wallet_index and utxo_index from HathorManager's constructor.
  2. Refactor tests to use self.create_peer(...) instead of instantiating HathorManager directly.
  3. Remove TransactionStorage.with_index attribute as a preparation to move the IndexManager instantiation to the builder.

@msbrogli msbrogli self-assigned this Nov 3, 2022
@msbrogli msbrogli requested a review from jansegre as a code owner November 3, 2022 08:52
Base automatically changed from refactor/builder to dev November 3, 2022 18:45
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 3, 2022

Codecov Report

Merging #504 (75e07d7) into dev (470e46e) will decrease coverage by 0.01%.
The diff coverage is n/a.

❗ Current head 75e07d7 differs from pull request most recent head f75ba58. Consider uploading reports for the commit f75ba58 to get more accurate results

@@            Coverage Diff             @@
##              dev     #504      +/-   ##
==========================================
- Coverage   83.26%   83.24%   -0.02%     
==========================================
  Files         186      186              
  Lines       16864    16862       -2     
  Branches     2640     2640              
==========================================
- Hits        14041    14037       -4     
- Misses       2331     2333       +2     
  Partials      492      492              
Impacted Files Coverage Δ
hathor/transaction/storage/cache_storage.py 91.97% <0.00%> (-2.19%) ⬇️
hathor/transaction/storage/memory_storage.py 89.06% <0.00%> (-1.85%) ⬇️
hathor/transaction/storage/transaction_storage.py 90.00% <0.00%> (-0.30%) ⬇️
hathor/p2p/manager.py 68.22% <0.00%> (+1.33%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@msbrogli msbrogli force-pushed the refactor/builder2 branch 4 times, most recently from d5678c8 to f75ba58 Compare November 8, 2022 22:25
@msbrogli msbrogli force-pushed the refactor/builder2 branch 6 times, most recently from 8a83571 to 079f9c3 Compare November 18, 2022 08:27
@msbrogli msbrogli force-pushed the refactor/builder2 branch 2 times, most recently from 8816fe8 to f1c9cbb Compare November 18, 2022 09:09
@msbrogli msbrogli merged commit 02f13ed into dev Nov 22, 2022
@msbrogli msbrogli deleted the refactor/builder2 branch November 22, 2022 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants