Commit Graph

24 Commits

Author SHA1 Message Date
Steven Barclay
66d6530652
Optimise/simplify some stream filtering for the REST API
Replace the streaming of Map entry sets to pick out a single entry by
key equality, and instead do a lookup into the map. Also, optimise the
date range filtering in 'TradeStatisticsManager::getTradeStatisticsList'
by using 'RangeUtils::subSet' to avoid scanning the entire collection.
(This method is applicable, as the trade statistics set is navigable and
naturally sorted by date.)
2024-07-28 22:05:29 +02:00
HenrikJannsen
0b40276a4c
Add check if dao is ready. Improve getBisqTxForAddr and fix nullpointer
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-07-21 19:55:23 +07:00
HenrikJannsen
20e7a38c7d
Remove DaoExplorerService and move method to DaoStateService
Add BlockDataToJsonConverter for blockdata to json conversion

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-07-21 18:31:17 +07:00
HenrikJannsen
bd9136fc97
Add explorer endpoints and dtos
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-07-21 17:39:00 +07:00
HenrikJannsen
9e0845e7f7
Add dependency to bitcoinj
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-07-21 15:16:26 +07:00
Alejandro García
6bef6cc4a7
Merge pull request #7189 from HenrikJannsen/set-useFullModeDaoMonitor-to-true-in-all-headless-apps
Set useFullModeDaoMonitor to true in all headless apps
2024-07-19 00:15:28 +00:00
HenrikJannsen
d39dd2ae25
Set useFullModeDaoMonitor to true in all headless apps
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-07-01 10:32:26 +07:00
HenrikJannsen
b6a308f646
Add txId to BondedReputationDto
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-30 18:28:49 +07:00
HenrikJannsen
444aa0dd96
Add txId to ProofOfBurnDto 2024-06-30 18:28:49 +07:00
HenrikJannsen
7b85bc5876
Fix bug with using wrong collection which held only one bond per hash
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-30 18:28:32 +07:00
HenrikJannsen
59f2df9f2f
Move duplicated code to super class
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 21:41:41 +07:00
HenrikJannsen
ed5547ac97
Move AppSetupWithP2PAndDAO.start call to ExecutableForAppWithP2p
Refactor StatisticsMain

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 21:21:17 +07:00
HenrikJannsen
1f83c8e68c
Fix wrong param
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 20:56:11 +07:00
HenrikJannsen
a9be3e96f9
Uncomment code for cleanupTorFiles.
Remove duplicated logs at cleanupTorFiles
2024-06-28 20:22:41 +07:00
HenrikJannsen
09626a1e85
Move launchApplication to super class
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 18:23:32 +07:00
HenrikJannsen
a65bd02d8f
Remove wrapping into UserThread.execute at launchApplication as UserThread is not setup yet and would be anyway same executor as caller. 2024-06-28 18:21:56 +07:00
HenrikJannsen
1945eacc4b
Remove try catch in launchApplication
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 18:21:56 +07:00
HenrikJannsen
4d99e31281
Move getModule() method to ExecutableForAppWithP2p
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 18:21:56 +07:00
HenrikJannsen
d8fdc928c8
Add default gracefulShutDown() method to GracefulShutDownHandler and replace it in implementing classes
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 18:21:56 +07:00
HenrikJannsen
b3580c05f7
Refactoring: renaming 2024-06-28 18:19:46 +07:00
HenrikJannsen
7577691f9e
Add run instructions to readme
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-07 22:53:36 +07:00
HenrikJannsen
1c98f8b61e
Refactor: Rename daonode to restapi 2024-06-07 22:53:36 +07:00
HenrikJannsen
cb25660b68
Improve logs. Add ToString annotation
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-07 22:53:36 +07:00
HenrikJannsen
e4cdfa731a
Add restapi module (code from dao-node) 2024-06-07 22:53:32 +07:00