HenrikJannsen
9b7320945e
Cleanup
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:36 +02:00
HenrikJannsen
c54d83f948
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-06 16:18:36 +02:00
HenrikJannsen
55a8b75789
Add complete call
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:36 +02:00
HenrikJannsen
a6208f10dd
Add listeners at init
...
Remove duplicated listener registration
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:36 +02:00
HenrikJannsen
509b07d7dc
Change log level
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:36 +02:00
HenrikJannsen
a6762cb66a
Return if !isParseBlockChainComplete
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:36 +02:00
HenrikJannsen
4b25adf32d
Remove unused methods
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:36 +02:00
HenrikJannsen
ec7dbb05c2
Improve DaoPresentation and add handler for daoStateHash updates
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:35 +02:00
HenrikJannsen
1d75fcfdae
Rename isDaoStateIsInSync to isDaoStateReadyAndInSync
...
Add daoStateService.isParseBlockChainComplete() check
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:35 +02:00
HenrikJannsen
f99d2f00ce
Add CheckIfDaoStateIsInSync task in trade protocol as first task
...
Add ifDaoStateIsInSync method to DaoFacade
Add ifDaoStateIsInSync to logs if DPT verification fails
2023-01-06 16:18:35 +02:00
HenrikJannsen
8fd8586923
Add chain heights to logs
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:35 +02:00
HenrikJannsen
6f803560cd
Improve logs
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:35 +02:00
HenrikJannsen
c563c01ac7
Improve log
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:35 +02:00
HenrikJannsen
10fa08b042
Cleanup
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:35 +02:00
HenrikJannsen
fd2cd53e64
Cleanup
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:34 +02:00
HenrikJannsen
a42a3c264e
Increase pool size
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:34 +02:00
HenrikJannsen
533be5a1ca
Combine nested if statements
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:34 +02:00
HenrikJannsen
7c1c35f6e1
Improve log
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:34 +02:00
HenrikJannsen
37241a0d08
Check if setException returns false and if so, cancel future.
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:34 +02:00
HenrikJannsen
13502941d3
Maintain pending futures and cancel them at cleanup.
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:34 +02:00
HenrikJannsen
33f7ebf902
Increase numOfFailedBroadcasts at timeout
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:34 +02:00
HenrikJannsen
7076039d3c
Remove stop setter at cancel
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:34 +02:00
HenrikJannsen
29ea720eea
Do not send close message to banned node
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:33 +02:00
HenrikJannsen
cb635809e0
Use AtomicBoolean for stopped and timeoutTriggered
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-06 16:18:33 +02: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
Christoph Atteneder
2e244c8e26
Remove unused signing key
2022-12-23 19:05:18 +01:00
Christoph Atteneder
fae711e765
Revert to SNAPSHOT version
2022-12-23 19:04:16 +01:00
HenrikJannsen
4a72c27fa0
Increase queue capacity from 10 to 30.
...
https://github.com/bisq-network/bisq/issues/6480 reported reaching the limit with the current settings.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-22 08:46:02 +01:00
Christoph Atteneder
cdb9fe44c1
Bump version number for v1.9.8
2022-12-22 08:44:13 +01:00
Christoph Atteneder
d1a2811589
Add back distribution tar generation for daemon and cli
...
This is required in finalize.sh script for creating the release bundle
2022-12-20 19:43:29 +01:00
HenrikJannsen
4fb0420712
Remove price node and seed nodes of @miker and @mrosseel
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-20 19:40:59 +01:00
Christoph Atteneder
d99452c978
Not use additional -%d
in name format because of refactoring
2022-12-20 11:36:42 +01:00
HenrikJannsen
30afccb2d6
Use ThreadPoolExecutor with custom set queueCapacity instead of CachedThreadPool
...
The previously used newCachedThreadPool carries higher risk for execution exceptions if exceeded.
Originally we had only one executor with a corePoolSize of 15 and a maximumPoolSize of 30 and queueCapacity was set to maximumPoolSize.
This was risky when the 15 corePool threads have been busy and new messages or connection creation threads are
queued up with potentially significant delay until getting served leading to timeouts.
Now we use (if maxConnections is 12) corePoolSize of 24, maximumPoolSize 36 and queueCapacity 10. This gives
considerable headroom. We also have split up the executors in 2 distinct ones.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-19 16:50:55 +01:00
jmacxx
9f8b3df1ac
Base initial limit from users max past trade size if applicable.
2022-12-19 16:49:39 +01:00
HenrikJannsen
8eb555df8f
Add INVALID_SNAPSHOT_HEIGHT to AvailabilityResult.
...
Use AvailabilityResult.INVALID_SNAPSHOT_HEIGHT instead of AckMessage with error.
Show description in error popup instead of enum name.
Return PRICE_CHECK_FAILED instead of UNKNOWN_FAILURE at error at price check also for non api users.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-19 09:32:00 +01:00
HenrikJannsen
0b849800f9
Fix test
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-19 09:32:00 +01:00
HenrikJannsen
bd85958c9e
Add sanity check for a min. block height for the snapshot height
...
We don't allow to get further back than 767950 (the block height from Dec. 18th 2022)
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-19 09:32:00 +01:00
HenrikJannsen
f834fbdda6
Add sanity check that max share of a non-legacy BM is 20% over MAX_BURN_SHARE (taking into account potential increase due adjustment)
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-19 09:31:59 +01:00
HenrikJannsen
618e610f3e
Exclude legacy BM from DAO balance
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-19 09:31:59 +01:00
HenrikJannsen
109c200650
Add balance fields for DAO revenue with total burned BSQ and total distributed BTC/BSQ
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-19 09:31:59 +01:00
HenrikJannsen
2be5d2fbd8
Increase GENESIS_OUTPUT_AMOUNT_FACTOR and ISSUANCE_BOOST_FACTOR
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-19 09:31:59 +01:00
HenrikJannsen
c268cc46cb
Add new average bsq price after historical data
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-19 09:31:58 +01:00
HenrikJannsen
1b182743a2
Update BurningManAccountingStore_BTC_MAINNET
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-19 09:31:58 +01:00