chimp1984
008fb3b6dc
Inline isMyMessage methods
2021-01-12 14:43:25 -05:00
chimp1984
c229c3f014
Refactor handling of DecryptedMessageWithPubKey
2021-01-12 14:36:13 -05:00
chimp1984
d353140e7a
Refactor: rename getMyDecryptedMessages method to make it more explicit
...
that its only used for MailboxMsg
2021-01-12 13:54:54 -05:00
chimp1984
5cdae8620b
Refactor: rename method to make it more explicit that its only used for MailboxMsg
2021-01-12 13:54:25 -05:00
chimp1984
575196c16d
Refactor handleDecryptedMessageWithPubKey to use MailboxMessage
...
instead of decryptedMessageWithPubKey.
Here we change a bit the behaviour as now we check also if the
TradeMessage is a MailboxMessage. As that method is only called
from MailboxMessageService domain we never get a non MailboxMessage
here anyway and it would have been a bug.
Remove removeMailboxMsg(DecryptedMessageWithPubKey decryptedMessageWithPubKey) as not used anymore
2021-01-12 13:53:20 -05:00
chimp1984
2235c4fbdc
Use removeMailboxMsg method with MailboxMessage as param type
2021-01-12 13:36:46 -05:00
chimp1984
456ce70d22
Refactor: rename dispatchMessage to onSupportMessage (no functionality change)
2021-01-12 13:32:03 -05:00
chimp1984
f536aba841
Refactor handling of removeMailboxMsg
2021-01-12 13:31:03 -05:00
chimp1984
bffe2b82a7
Store PrivateNotificationMessage instead of DecryptedMessageWithPubKey
2021-01-12 13:25:19 -05:00
chimp1984
0f087946fc
Remove unneeded wrapping of tradeMessage into DecryptedMessageWithPubKey
2021-01-12 13:25:04 -05:00
chimp1984
32aeda7468
Add null check
2021-01-12 12:47:57 -05:00
chimp1984
d39a697611
Fix wrong delay, increase timeout
2021-01-12 10:48:29 -05:00
chimp1984
320e5f1aef
Refactor: Rename method
2021-01-12 10:48:28 -05:00
chimp1984
35ef3b842f
Add support for TTL defined by payload message so we can use
...
different TTL for lower prio mailbox messages like AckMessages.
As we cannot add a field without breaking signatures we
need to use the extraMap in MailboxStoragePayload
2021-01-12 10:48:28 -05:00
chimp1984
a3b2aad3b0
Refactor: move class to new utils package
2021-01-12 10:48:27 -05:00
chimp1984
41a92eae7f
Refactor: Rename class
2021-01-12 10:48:27 -05:00
chimp1984
75e547fda5
Refactor: move classes to persistence package
2021-01-12 10:48:27 -05:00
chimp1984
32f887478b
Persist map for removed mailbox messages (AddOncePayload more generally)
...
We add the date when we add the hash so that we can remove expired data.
2021-01-12 10:48:26 -05:00
chimp1984
504fb2e6a1
Refactor: Rename
2021-01-12 10:48:26 -05:00
chimp1984
4fc35a7b39
Cleanups
2021-01-12 10:48:25 -05:00
chimp1984
b8fc7f3985
Remove sendEncryptedMailboxMessage from P2PService and use MailboxMessageService instead
2021-01-12 10:48:25 -05:00
chimp1984
33703c269c
Remove removePrivateNotification from P2PService and use MailboxMessageService instead
2021-01-12 10:48:25 -05:00
chimp1984
ee3f158f5f
Remove addDecryptedMailboxListener from P2PService and use MailboxMessageService instead
2021-01-12 10:48:25 -05:00
chimp1984
d470d736ce
Remove getMailBoxMessages from P2PService and use MailboxMessageService instead
2021-01-12 10:48:25 -05:00
chimp1984
a28a2f59df
Move mailbox related code from P2PService to MailboxMessageService
2021-01-12 10:48:25 -05:00
chimp1984
0656a52eb9
Refactor: Move mailbox related classed to mailbox package. Make constructor public.
2021-01-12 10:48:24 -05:00
Christoph Atteneder
1406043f3b
Merge pull request #5078 from chimp1984/add-v2-seeds
...
Add 4 olds v2 seed nodes
2021-01-12 14:29:55 +01:00
sqrrm
4298c3937e
Merge pull request #5070 from chimp1984/improve-cleanup-tor-dir-at-seeds
...
Improve cleanup tor dir at seeds
2021-01-12 13:23:37 +01:00
sqrrm
fea52f07a3
Merge pull request #5057 from chimp1984/fix-premature-disconnections-from-seeds
...
Fix premature disconnections from seeds
2021-01-12 12:52:41 +01:00
chimp1984
9b026868f8
Add 4 olds v2 seed nodes
2021-01-11 23:29:51 -05:00
chimp1984
8ecfa8bcba
We set a flag to clear tor cache files at re-start.
...
We cannot clear it now as Tor is used and
that can cause problems.
2021-01-09 20:40:58 -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
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
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
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
chimp1984
21eaea0703
Add IgnoredMailboxMap to persist failed decryption
...
attempts and optimize performance by that
2021-01-06 21:20:50 -05:00
ghubstan
424c3cb1ab
Avoid unnecessary comparisons in boolean expressions
2021-01-06 18:13:01 -03: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
1dc71c9b3a
Increase delay for reset
...
Improve statistic logging
2021-01-06 11:14:47 -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
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
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
3d55c16c8b
Update display string and UI representation
2021-01-05 20:56:27 -05:00