Commit Graph

17198 Commits

Author SHA1 Message Date
HenrikJannsen
8b0f8fbead
Cleanup
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 22:18:10 -05:00
HenrikJannsen
719602358d
Increase pool size
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 22:17:09 -05:00
HenrikJannsen
41a63cc8a5
Add handling of miner fee in case there is only the legacy BM
Use spendableAmount instead of inputAmount at maxOutputAmount

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 22:04:23 -05:00
HenrikJannsen
bb06f64049
Add complete call
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 22:04:23 -05:00
HenrikJannsen
aa514b37da
Add listeners at init
Remove duplicated listener registration

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 22:02:57 -05:00
HenrikJannsen
31592ac955
Update BurningManAccountingStore
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 21:46:44 -05:00
HenrikJannsen
bc91914cb0
Change log level
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 14:48:51 -05:00
HenrikJannsen
cdfa3fa141
Return if !isParseBlockChainComplete
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 12:20:09 -05:00
HenrikJannsen
093e8f99f4
Remove unused methods
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 11:41:11 -05:00
HenrikJannsen
9deaa32df7
Disable tests for GetDataResponse
Sorry I don't have time atm to fix the complex tests. In the past the issues have always been caused by test setup issues and not because of introduced bugs.
Here we changed the algorithm for truncation, so that might be the case why it fails, or it is the new method for priority which might cause issues with the mocks.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 11:39:28 -05:00
HenrikJannsen
13180ddc30
Improve DaoPresentation and add handler for daoStateHash updates
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 11:21:01 -05:00
HenrikJannsen
1e2f48b9bc
Rename isDaoStateIsInSync to isDaoStateReadyAndInSync
Add daoStateService.isParseBlockChainComplete() check

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 10:42:59 -05:00
HenrikJannsen
b33c610015
Add CheckIfDaoStateIsInSync task in trade protocol as first task
Add ifDaoStateIsInSync method to DaoFacade
Add ifDaoStateIsInSync to logs if DPT verification fails
2023-01-05 10:39:24 -05:00
HenrikJannsen
be33aa5236
Add chain heights to logs
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 10:22:50 -05:00
HenrikJannsen
f4d335b624
Improve logs
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 10:18:42 -05:00
HenrikJannsen
02093b986b
Improve log
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 10:06:49 -05:00
HenrikJannsen
33357cfc8d
Remove debug logs
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-05 00:27:29 -05:00
HenrikJannsen
7db8255e0b
Add GetDataResponsePriority for filtering payloads for GetDataResponse.
Fix sorting at truncating DateSortedTruncatablePayloads.
Rebroadcast high prio items
2023-01-04 23:55:47 -05:00
HenrikJannsen
ea285e6ad1
Run processAccountingBlocks async in forkjoinpool thread
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 20:52:22 -05:00
HenrikJannsen
819c6fb200
Combine nested if statements
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 19:30:02 -05:00
HenrikJannsen
5542ea23ec
Add custom getGetDataResponsePriority methods
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 18:25:17 -05:00
HenrikJannsen
23e45a2843
Add GetDataResponsePriority enum
Add default getGetDataResponsePriority impl. to NetworkPayload

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 18:23:26 -05:00
HenrikJannsen
1172eec2ce
Improve log
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 18:14:06 -05:00
HenrikJannsen
5efd13a678
Check if setException returns false and if so, cancel future.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 18:09:04 -05:00
HenrikJannsen
5e29bfe4c2
Maintain pending futures and cancel them at cleanup.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 14:01:54 -05:00
HenrikJannsen
3e48956227
Increase numOfFailedBroadcasts at timeout
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 14:01:54 -05:00
HenrikJannsen
de32339926
Remove stop setter at cancel
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 14:01:53 -05:00
HenrikJannsen
20b39a4055
Do not send close message to banned node
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 14:01:53 -05:00
HenrikJannsen
41fb5e464c
Use AtomicBoolean for stopped and timeoutTriggered
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 14:01:53 -05:00
HenrikJannsen
19629ab088
Increase thread pool size at Broadcaster
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 14:42:37 +02:00
HenrikJannsen
25c42e81da
Reduce DPT_MIN_REMAINDER_TO_LEGACY_BM from 50k sat to 25k sat.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 14:42:37 +02:00
HenrikJannsen
063ef02f54
Use getActiveBurningManCandidates for fee distribution
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 14:07:34 +02:00
HenrikJannsen
5470097981
Fix but with calculating the miner fee for the DPT.
Add activation date for hotfix.

We used all potential BM instead only the ones who have a positive cappedBurnAmountShare.
2023-01-04 14:07:34 +02:00
HenrikJannsen
659d0c283d
Add custom thread pool to broadcaster
The broadcasting consumes most of the threads but has lower priority than other messages being sent.
By separating that thread pool from the common sendMessage executor we can reduce the risk that a burst of
broadcasts exhausts the thread pool and might drop send message tasks.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 14:05:35 +02:00
HenrikJannsen
373ca538bd
Reduce keepAliveTime to 30 sec.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 14:05:35 +02:00
HenrikJannsen
c01ffaa8c3
Add executor parameter to sendMessage
Add try/catch to handle RejectedExecutionException

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 14:05:35 +02:00
HenrikJannsen
64db59ba53
Catch RejectedExecutionException at UncaughtExceptionHandler and log error instead calling the uncaughtExceptionHandler
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 14:05:19 +02:00
Alejandro García
803a58eab7
Merge pull request #6498 from HenrikJannsen/increase_threadpool_size
Increase thread pool size at Broadcaster
2023-01-04 11:46:58 +00:00
HenrikJannsen
b7d1a9da22
Increase thread pool size at Broadcaster
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-03 19:58:29 -05:00
Alejandro García
9d820ba83e
Merge pull request #6495 from HenrikJannsen/fix_BM_collection_at_DPT
Fix bug with calculating the miner fee for the DPT.
2023-01-03 23:38:30 +00:00
Alejandro García
e0985c397e
Merge pull request #6494 from HenrikJannsen/fix_trade_fee_validation_for_new_BM
Fix trade fee validation with new BM
2023-01-03 23:37:46 +00:00
HenrikJannsen
56377d8930
Reduce DPT_MIN_REMAINDER_TO_LEGACY_BM from 50k sat to 25k sat.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-03 17:32:10 -05:00
HenrikJannsen
a296887a73
Use getActiveBurningManCandidates for fee distribution
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-03 12:08:12 -05:00
HenrikJannsen
0c4199fef4
Fix but with calculating the miner fee for the DPT.
Add activation date for hotfix.

We used all potential BM instead only the ones who have a positive cappedBurnAmountShare.
2023-01-03 12:07:38 -05:00
HenrikJannsen
8bde140e3d
Add all addresses of all burningman who have burned BSQ to the list of addresses who are permitted to receive trade fees.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-02 17:01:38 -05:00
Alejandro García
1d669240d8
Merge pull request #6425 from jmacxx/fix_bsq_fee_validation
Validate BSQ fee payment using DAO tx info.
2022-12-29 20:12:38 +00:00
jmacxx
fa6beffa49
Apply code review changes. 2022-12-29 13:57:13 -06:00
Alejandro García
681d8f972b
Merge pull request #6483 from jmacxx/fix_issue_6276
Fix problem causing multiple offers with same ID.
2022-12-29 15:05:20 +00:00
Alejandro García
eef7846394
Merge pull request #6487 from HenrikJannsen/reset_pending_trade_protocol_of_same_offer
Reset pending trade protocol of same offer
2022-12-29 15:02:36 +00:00
Alejandro García
2298d126d9
Merge pull request #6478 from HenrikJannsen/seednodes
Seednode improvements for monitoring
2022-12-29 14:57:35 +00:00