BuxOrg / bux

Bitcoin UTXO & xPub Management Engine
https://getbux.io
Apache License 2.0
36 stars 6 forks source link

feat(BUX-368): Arc Callbacks #558

Closed wregulski closed 9 months ago

wregulski commented 9 months ago

What was done?

  1. Created business logic methods to handle broadcast callbacks from broadcast client.
  2. Changed syncTx task from 2minutes interval to 10minutes interval.

Pull Request Checklist

codecov[bot] commented 9 months ago

Codecov Report

Attention: 101 lines in your changes are missing coverage. Please review.

Comparison is base (fbc92f3) 56.82% compared to head (ae3ab24) 53.60%. Report is 60 commits behind head on rc-v1.1.

:exclamation: Current head ae3ab24 differs from pull request most recent head 2547350. Consider uploading reports for the commit 2547350 to get more accurate results

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/BuxOrg/bux/pull/558/graphs/tree.svg?width=650&height=150&src=pr&token=gh8XH5lven&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg)](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg) ```diff @@ Coverage Diff @@ ## rc-v1.1 #558 +/- ## =========================================== - Coverage 56.82% 53.60% -3.22% =========================================== Files 102 110 +8 Lines 9876 10890 +1014 =========================================== + Hits 5612 5838 +226 - Misses 3826 4583 +757 - Partials 438 469 +31 ``` | [Flag](https://app.codecov.io/gh/BuxOrg/bux/pull/558/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg) | Coverage Ξ” | | |---|---|---| | [unittests](https://app.codecov.io/gh/BuxOrg/bux/pull/558/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg) | `53.60% <50.49%> (-3.22%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg) | Coverage Ξ” | | |---|---|---| | [authentication.go](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg#diff-YXV0aGVudGljYXRpb24uZ28=) | `80.52% <100.00%> (+0.02%)` | :arrow_up: | | [beef\_bump.go](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg#diff-YmVlZl9idW1wLmdv) | `78.33% <100.00%> (ΓΈ)` | | | [beef\_tx\_sorting.go](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg#diff-YmVlZl90eF9zb3J0aW5nLmdv) | `100.00% <100.00%> (ΓΈ)` | | | [chainstate/broadcast\_providers.go](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg#diff-Y2hhaW5zdGF0ZS9icm9hZGNhc3RfcHJvdmlkZXJzLmdv) | `63.93% <100.00%> (+3.22%)` | :arrow_up: | | [chainstate/merkle\_root.go](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg#diff-Y2hhaW5zdGF0ZS9tZXJrbGVfcm9vdC5nbw==) | `83.33% <100.00%> (+83.33%)` | :arrow_up: | | [chainstate/minercraft\_init.go](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg#diff-Y2hhaW5zdGF0ZS9taW5lcmNyYWZ0X2luaXQuZ28=) | `82.35% <100.00%> (+18.48%)` | :arrow_up: | | [chainstate/mock\_minercraft.go](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg#diff-Y2hhaW5zdGF0ZS9tb2NrX21pbmVyY3JhZnQuZ28=) | `27.95% <100.00%> (+11.54%)` | :arrow_up: | | [client.go](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg#diff-Y2xpZW50Lmdv) | `60.50% <ΓΈ> (-4.70%)` | :arrow_down: | | [cron\_job\_declarations.go](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg#diff-Y3Jvbl9qb2JfZGVjbGFyYXRpb25zLmdv) | `87.50% <100.00%> (+2.50%)` | :arrow_up: | | [model\_incoming\_transactions.go](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg#diff-bW9kZWxfaW5jb21pbmdfdHJhbnNhY3Rpb25zLmdv) | `53.61% <100.00%> (ΓΈ)` | | | ... and [29 more](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg) | | ... and [15 files with indirect coverage changes](https://app.codecov.io/gh/BuxOrg/bux/pull/558/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg) > `Ξ” = absolute (impact)`, `ΓΈ = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg). Last update [1f914f8...2547350](https://app.codecov.io/gh/BuxOrg/bux/pull/558?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BuxOrg).