Commit Graph

12909 Commits

Author SHA1 Message Date
ghubstan
d8bc26588c
Add license comment 2020-10-25 16:52:45 -03:00
ghubstan
3379376bab
Refactor CLI output formatting code & add trade formatter
- Move output column header specs to its own shared constants class.

- Add new TradeFormat class for printing trade details in the console.

- Print formatted trade in api trade tests -- to see output before
  using formatter in CLI (in next PR).
2020-10-25 16:50:22 -03:00
ghubstan
161dbade0d
Add getRole(tradeId) to core api
API users will need to see their role as maker/taker when looking at trade details.

- Add getRole(trade) to TradeUtil.
- Add getTradeRole(tradeId) to CoreApi, CoreTradesService.
- Add role field to TradeInfo proto and its wrapper class.
2020-10-25 16:22:20 -03:00
chimp1984
93031ba66e
Add export to csv hyperlink (a button takes too much vertical space) 2020-10-25 13:54:58 -05:00
sqrrm
17745e3bee
Clean up riskFactor methods 2020-10-25 18:55:04 +01:00
sqrrm
b64c816047
Refactor getTradeLimit 2020-10-25 18:47:07 +01:00
sqrrm
56c8cd1507
Remove unused old activation date 2020-10-25 18:47:07 +01:00
ghubstan
bbd7a31c88
Remove unused import 2020-10-25 11:38:03 -03:00
ghubstan
95bcb1ef9c
Refactor PendingTradesDataModel methods -> TradeUtil
Scope of this refactoring is small;  more can be done, but the short
term goal is to share trade util logic with core api.

- Removed unused method getCurrencyCode()
- Made minor style changes
- Removed duplicated code block
2020-10-25 11:27:30 -03:00
ghubstan
36ad137949
Remove trailing spaces for codacy 2020-10-25 10:54:40 -03:00
ghubstan
24ba9215cd
Refactor PendingTradesViewModel methods -> TradeUtil & OfferUtil 2020-10-25 10:41:19 -03:00
ghubstan
ccd3c99f2e
Fix comment typos 2020-10-24 17:45:01 -03:00
ghubstan
296e4f98cb
Replace static TradeUtil with singleton TradeUtil
The API is going to need some desktop trade utilities, which should be
shared between :desktop and :core.api.
2020-10-24 17:26:10 -03:00
ghubstan
63cf436990
Add fields to grpc TradeInfo proto & wrapper 2020-10-24 16:27:03 -03:00
ghubstan
ab20225cd2
Add compiler warning suppression, remove comment 2020-10-24 16:25:20 -03:00
chimp1984
44a9756f80
Apply code inspection suggestions
Add checks if optional is present
2020-10-24 13:20:29 -05:00
chimp1984
37952c8dd0
Use networkPostfix for file name 2020-10-24 13:03:52 -05:00
chimp1984
832bc83e93
Add ifPresent check at optional 2020-10-24 13:03:03 -05:00
cd2357
ca56d002df
Update netlayer references to bisq repos
Update build.gradle to rely on the netlayer libraries from the bisq-network repo. The library versions (commit IDs) remain the same, only the repo from which they are pulled is changed.
2020-10-24 13:33:22 +02:00
Christoph Atteneder
55c663ad47
Merge pull request #4676 from jmacxx/show_tx_fee
Show current tx fee rate on main screen
2020-10-24 11:40:34 +02:00
sqrrm
93a3188659
Merge pull request #4680 from chimp1984/add-InventoryMonitor-module
Add inventory monitor module
2020-10-23 19:26:53 +02:00
chimp1984
f7b44f1646
Improve logs 2020-10-23 11:02:47 -05:00
ghubstan
cb65de6d2e
Block on tx-fee-request in core TakeOfferModel init
Added license comment too.
2020-10-23 12:47:06 -03:00
sqrrm
9e76f5fdc3
Merge pull request #4606 from ghubstan/remove-dup-statuscheck
Delete redundant core.api.StatusCheck
2020-10-23 15:42:34 +02:00
chimp1984
330f14ff1f
Revert changes for json export of dao data
Backend is not ready yet and the changes are bigger than initially expected.

Was changed as part of 0d469066ce

See discussion at https://github.com/bisq-network/bisq/pull/4670
2020-10-23 01:39:49 -05:00
chimp1984
f1fdf3c0a5
Improve deviation model 2020-10-23 01:17:34 -05:00
chimp1984
0c4eb14077
Only log and increase numAllConnectionsLostEvents if we have not called shutDown
We also do not call listeners in that case as some listeners have some restart routines
on that event which is not what we want at shut down
2020-10-23 01:17:34 -05:00
chimp1984
5bdc5abe34
Add numAllConnectionsLostEvents 2020-10-23 01:17:34 -05:00
chimp1984
8c156eb5bf
Add peakNumConnections 2020-10-23 01:17:34 -05:00
chimp1984
5fb48fe72f
Fix error handling
Add all seeds
2020-10-23 01:17:34 -05:00
chimp1984
d08b24ece0
Add triggers for maxConnections and numConnections 2020-10-23 01:17:34 -05:00
chimp1984
1c779306ff
Add more warn/alert checks 2020-10-23 01:17:34 -05:00
chimp1984
ec4e85d7ca
Add network node shutdown
Rearrange request info fields
2020-10-23 01:17:33 -05:00
chimp1984
7768e58b98
Shut down connection after response received
Various improvements...
2020-10-23 01:17:33 -05:00
chimp1984
1b83083ade
Add nodes from mike
Various improvements...
2020-10-23 01:17:33 -05:00
chimp1984
752208b3ca
Add InventoryItem enum
Add average and color codes to html
Add maxConnections
Add DeviationSeverity enum
Add custom seed node file
Use InventoryItem as key in inventory map instead of string
2020-10-23 01:17:33 -05:00
chimp1984
b846979ecd
Make RequestInfo public 2020-10-23 01:17:33 -05:00
chimp1984
aa812ba7f1
Add shadow plugin 2020-10-23 01:17:33 -05:00
chimp1984
21bd85c488
Remove signature from GetInventoryRequest (as monitor is public it does not make sense to limit requests).
Add html output and webserver
2020-10-23 01:17:33 -05:00
chimp1984
821fa39a7e
Add sparkjava dependency 2020-10-23 01:17:33 -05:00
chimp1984
d9ce8ce37a
Add readSeedNodePropertyFile method 2020-10-23 01:17:33 -05:00
chimp1984
088f539fec
Add readableFileSize 2020-10-23 01:17:32 -05:00
chimp1984
ca7fe94c06
Add signature to request to limit the feature to requests from trusted nodes (monitor) 2020-10-23 01:17:32 -05:00
chimp1984
9dab186086
Move inventory package to core as we want to include other domain data as well like DAO state
Add more data to inventory map and change type of value to String.
2020-10-23 01:17:32 -05:00
chimp1984
3521619e03
Add inventory module
Simple monitor dumping json files with data result and request/response time to disk. Can be used by a simple web server to show state of seed nodes.
2020-10-23 01:17:32 -05:00
chimp1984
55b693e295
Make config nullable and extract methods where config is used and apply default value in case config is not set. 2020-10-23 01:17:32 -05:00
chimp1984
329249845f
Extract method for filling seed nodes from property file 2020-10-23 01:17:32 -05:00
chimp1984
87bf30b98c
Remove torSetup.cleanupTorFiles() call.
This has caused the slow tor startup of about 20-30 sec. Without that it is about 5 sec.
2020-10-23 01:14:29 -05:00
chimp1984
c0f981ad1d
Fix incorrect shutdown behaviour
Delay the boolean property setter as otherwise our listener might never
get triggered if property is set synchronously before listener registration.
Remove shutdown thread.
Cancel future in case tor is not created yet.
2020-10-23 00:30:29 -05:00
chimp1984
5943845891
Map shutdown call from sig int handler to userThread 2020-10-23 00:13:52 -05:00