chimp1984
0d09c19953
Cleanups
2021-01-08 19:30:10 -05:00
chimp1984
5ec6ad503f
Cache fields in TradeStatistics3ListItem
2021-01-08 18:24:56 -05:00
chimp1984
bf7acb5932
Add toggle for showing volume as USD instead of BTC
...
Precalculate the USD average prices for tick intervals
and use that for converting the BTC volume to USD volume.
2021-01-08 16:41:55 -05:00
chimp1984
764614d762
Add methods for boolean values
2021-01-08 16:41:55 -05:00
chimp1984
73fcf52129
Cache price and localDateTime
2021-01-08 16:41:55 -05:00
chimp1984
8927787286
Cache Volume
...
Volume was created at each access from amount and price.
To improve performance we cache the result once calculated.
2021-01-08 16:41:55 -05:00
chimp1984
ad1b436832
Use List instead of ObservableList, cleanups
2021-01-08 16:41:55 -05:00
chimp1984
6c62e77d7c
Remove unused variable
2021-01-08 14:24:24 -05:00
ghubstan
9ae1a29f23
Integrate new protection tools into api's offer & trade services
...
- Injected OfferFilter into CoreOffersService and CoreTradesService.
The filter constrains 'getoffer(s)' results to offers an api user
can take, as the first part of ongoing protection tools / api
integration.
- Created a new CoreContext singleton.
Initially, lets Core*Services know if the user is using the api --
isApiUser=true if the current thread's name is "BisqDaemonMain" or
the name contains "grpc". We do this anticipating future :desktop
dependencies on the core api, and we don't pass hardcoded
isApiUser=true params to lower level domain objects.
We cannot check BisqDaemonMain.class.getSimpleName() because :core
cannot have a circular dependency on :daemon, but there is probably a
better way to do this than depending on the thread name set in
BisqDaemonMain#configUserThread().
- Added @Singleton annotation to all Core*Service classes.
2021-01-08 13:22:01 -03:00
ghubstan
cc0855497e
Add @Singleton annotation
2021-01-08 12:51:48 -03:00
ghubstan
9180ca61f6
Fix two CLI option parsing bugs
...
- Fix bug locating index of method name in String[] args.
- Make createoffer method's security-deposit param format consistent with UI's.
When creating an offer, the CLI should take "15.0", not "0.15" as
a 15% security deposit. This is consistent with the UI, and the
CLI's mkt-price-margin input format.
2021-01-08 11:14:16 -03:00
Christoph Atteneder
1daa58624d
Merge pull request #5061 from chimp1984/persist-failed-mailbox-msg-decryption-attempts
...
Persist failed attempts of decrypting mailbox messages
2021-01-08 10:35:41 +01:00
Christoph Atteneder
be40c7849c
Merge pull request #5008 from jmacxx/remove_awt_dependencies
...
Remove awt dependencies
2021-01-08 09:25:41 +01:00
James Cox
e50a182883
Merge branch 'master' into remove_awt_dependencies
2021-01-07 17:54:40 -06:00
sqrrm
76e2330b15
Merge pull request #5056 from ghubstan/add-getmyoffers-api-method
...
Add new api methods 'getmyoffers' and 'getmyoffer'
2021-01-07 22:51:33 +01:00
ghubstan
9689c3edfc
Sort offers in stream
2021-01-07 16:07:41 -03:00
Christoph Atteneder
9b2c0e87c5
Merge pull request #4893 from 81dr/master
...
Update installation script
2021-01-07 17:12:56 +01:00
Christoph Atteneder
fdf7912bab
Merge pull request #5016 from chimp1984/increase-trade-period-for-transferwise
...
Change trade period for transferwise from 1 day to 4 days
2021-01-07 16:53:59 +01:00
Christoph Atteneder
6200455770
Merge pull request #5053 from chimp1984/add-protection-tools
...
Add protection tools
2021-01-07 16:20:26 +01:00
Christoph Atteneder
ad9949c06d
Merge pull request #5059 from ghubstan/fix-createofferservice-log-statement
...
Fix log statement format
2021-01-07 16:17:21 +01:00
chimp1984
21eaea0703
Add IgnoredMailboxMap to persist failed decryption
...
attempts and optimize performance by that
2021-01-06 21:20:50 -05:00
chimp1984
8ccfd65c49
Prevent calling shutdown at TorNetworkNode twice.
...
This can happen from the main shut down routine when a timeout gets triggered.
2021-01-06 18:38:21 -05:00
chimp1984
bda9ebe3ca
Change print statistics period to 5 min.
...
remove dev log
2021-01-06 18:09:34 -05:00
ghubstan
424c3cb1ab
Avoid unnecessary comparisons in boolean expressions
2021-01-06 18:13:01 -03:00
chimp1984
a1cb6d5619
If duration is 0 we return "0.000 seconds" instead of empty string
2021-01-06 16:03:55 -05:00
ghubstan
80c10dba78
Fix log statement format
...
A log statement was mismatching argument placeholders with argument
values because it was formatted as
log.info("msg={}, \n" + args...)
instead of
log.info("msg={}", args...)
Some code formatting was also done to this block, and a closer approximation
of a CLI 'createoffer` param list replaces the following log statement.
2021-01-06 17:58:52 -03:00
chimp1984
e0e14431e4
Add RRT for request / response
2021-01-06 15:45:43 -05:00
chimp1984
4aecd75d4f
Add bytes sent/received to ConnectionStatistics
...
Do check for closed socket after blocking read.
Move throttle code after blocking read.
2021-01-06 14:01:04 -05:00
chimp1984
d8f9581ee8
Ignore test
...
It reports "Wanted but not invoked:" but when debugging
into it it is called. So seems to be some mock setup issue
2021-01-06 12:18:45 -05:00
chimp1984
1dc71c9b3a
Increase delay for reset
...
Improve statistic logging
2021-01-06 11:14:47 -05:00
chimp1984
63a87def20
Add missing stub to mock
2021-01-06 11:05:16 -05:00
chimp1984
379fec8b9d
Fix translation string
2021-01-06 09:54:38 -05:00
chimp1984
14008a670a
Add formatDurationAsWords to Utilities in common
...
to be accessible to the statistics log.
2021-01-06 01:49:38 -05:00
chimp1984
8865d9bc93
Fix node display
2021-01-06 01:33:00 -05:00
chimp1984
a996754e06
Improve log
2021-01-06 01:11:37 -05:00
chimp1984
082cc33ba4
Fix wrong param in addToMap
...
Also track BundleOfEnvelopes
2021-01-06 01:09:24 -05:00
chimp1984
d13b7e70fa
Add seed node info, add line break
2021-01-06 00:58:40 -05:00
chimp1984
a346db696f
Handle BundleOfEnvelopes in ConnectionState
...
Add ConnectionStatistics
Print statistics of all live connections periodically
2021-01-06 00:18:56 -05:00
chimp1984
347e68004c
Use OS independent double line breaks for better readability
2021-01-05 22:20:09 -05:00
chimp1984
3fa22427c7
Set expectedRequests to 5 in case of fullDaoNode as
...
it does not do the getBlocksRequest.
2021-01-05 22:19:26 -05:00
chimp1984
c7bc7720d8
Add safety filter to removeAnonymousPeers
...
Cleanups
2021-01-05 21:42:19 -05:00
chimp1984
769a78fe52
Behaviour change: Remove setAllowDisconnectSeedNodes method
...
We handle it in ConnectionState by counting
requests and responses and adding a timer
2021-01-05 21:42:18 -05:00
chimp1984
7414df0951
Behaviour change: Remove removeSuperfluousSeedNodes method
...
We handle the connections by INITIAL_DATA_EXCHANGE which
cover the seed nodes as well. Do have an parallel routine
is risky and make things more complex.
2021-01-05 21:41:57 -05:00
chimp1984
34230f43f6
Fix wrong return value for getMaxConnections
2021-01-05 21:21:58 -05:00
chimp1984
5628b7b85c
Refactor:
...
Rename maxConnectionsPeer to outBoundPeerTrigger
Rename maxConnectionsNonDirect to initialDataExchangeTrigger
Update comment
2021-01-05 21:21:17 -05:00
chimp1984
cf4d89dea2
Behaviour change:
...
In the 3rd attempt we filter for
INITIAL_DATA_EXCHANGE peers.
Before we excluded 2 types and as PEER have been
already filtered earlier we would look up for SEED_NODE.
This was only called by non-seedNodes.
2021-01-05 21:10:45 -05:00
chimp1984
4d64fac401
Refactor: Rename lastInitialDataExchangeMessageTimeStamp to lastInitialDataMsgTimeStamp
2021-01-05 21:03:16 -05:00
chimp1984
acad31fa63
Do sorting at candidates stream.
...
At INITIAL_DATA_EXCHANGE we sort
by lastInitialDataExchangeMessageTimeStamp
2021-01-05 21:02:09 -05:00
chimp1984
3d55c16c8b
Update display string and UI representation
2021-01-05 20:56:27 -05:00
chimp1984
e1b1781e66
Remove PeerType.SEED_NODE
...
Fix typo
2021-01-05 20:56:04 -05:00