chimp1984
aea904d24f
We do not need to lookup in getSignedWitnessMapValues
...
anymore as we maintain the signedWitnessSetByAccountAgeWitnessHash
at each add/remove operation.
2020-12-20 10:28:28 -05:00
chimp1984
b6a01d0ac7
Rename signedWitnessSetCache to signedWitnessSetByAccountAgeWitnessHash
...
Change comments (after understanding the domain usage better)
Maintain the set at add and remove methods
Use HashMap instead of ConcurrentHashMap as that class is only used
from UserThread and other fields are not threadsafe either.
2020-12-20 10:00:28 -05:00
chimp1984
35e2bf6383
Rename getSignedWitnessSetCache to signedWitnessSetCache
2020-12-20 09:34:00 -05:00
chimp1984
cccaa0a515
Update popup text
2020-12-20 09:31:29 -05:00
chimp1984
264a844274
We need to user accountAgeWitnessStorageService as
...
this supports the historical data store.
Using p2PService.getP2PDataStorage().getAppendOnlyDataStoreMap()
would not deliver all the data.
User stream API
2020-12-19 20:54:54 -05:00
sqrrm
442d65a730
Merge pull request #4973 from chimp1984/improve-logs
...
[1.5.2] Improve logs
2020-12-19 23:36:21 +01:00
sqrrm
c8c6633d16
Merge pull request #4974 from chimp1984/fix-nullpointer
...
[1.5.2] Fix nullpointer
2020-12-19 23:31:21 +01:00
sqrrm
245e736bc4
Merge pull request #4976 from chimp1984/remove-ngn-from-transferwise
...
[1.5.2] Remove NGN (Nigerian Naira) as their central bank blocked Transferwise
2020-12-19 23:30:38 +01:00
chimp1984
814c5d13ee
Change text at amazon gift card popup
2020-12-19 17:16:25 -05:00
chimp1984
69fcf9f255
Remove automatic setting of first currency from combobox
2020-12-19 17:15:49 -05:00
Jakub Loucký
ae21e709bb
Improve paragraph under "Wallet balances"
2020-12-19 23:11:16 +01:00
chimp1984
3cb3dc4c0c
Remove NGN (Nigerian Naira) as their central bank blocked Transferwise
...
See: https://twitter.com/cenbank/status/1339196770774093825
I tested it with setting that currency, doing offers and trades,
then remove it and continue the trades.
Offers with NGN cannot be taken anymore.
2020-12-19 16:55:34 -05:00
chimp1984
4e108380b8
Check if message matches trade before checking pubKey
...
Use stream filters instead of checks in method.
Change log level from error to warn.
2020-12-19 16:16:05 -05:00
ghubstan
a3eb4ed59a
Remove unused import
2020-12-19 17:37:24 -03:00
chimp1984
d24d05d08d
Fix nullpointer
...
A Nullpointer can happen if app get shut down very early.
2020-12-19 15:37:02 -05:00
ghubstan
abc39402b5
Test CallRateMeteringInterceptor
2020-12-19 17:31:02 -03:00
chimp1984
c6b619688a
Change log level
...
We iterate over all trades and messages, so it is expected that
the msg which are not assigned to that trade fails.
We need to change the handleDecryptedMessageWithPubKey to check
first if the msg and trade matches, but that will be done in a dedicated PR.
2020-12-19 15:30:57 -05:00
ghubstan
fabd7c8776
Refactor testcase superclasses to support rate metering configs
2020-12-19 17:08:53 -03:00
chimp1984
a9f9e989a4
Use OS seperators so it works also on windows
2020-12-19 15:08:01 -05:00
chimp1984
1e0dcfbcbc
Change log level to debug to reduce verbosity
2020-12-19 15:07:26 -05:00
chimp1984
cb130fcd8f
Change log level to warn in case the phase is not matching as that is mostly an expected case.
2020-12-19 15:06:48 -05:00
chimp1984
661ec42c56
Add more info to log that this can be an expected case.
...
As its generic here we cannot influence log level
2020-12-19 15:06:23 -05:00
ghubstan
d5657e9760
Install call rate metering config file before startup
...
Copy the config file at --callRateMeteringConfigPath to each daemon's
appDataDir, where it will be detected at server startup.
2020-12-19 17:04:40 -03:00
ghubstan
56a5c7938d
Add ApiTestConfig option --callRateMeteringConfigPath
...
Points to a call rate metering interceptor configuration file.
Test cases can build a config file, and the test harness will
install it into a daemon's appDataDir before startup.
The installed config file will be used to configure gRPC
service rate metering interceptors.
2020-12-19 16:54:44 -03:00
chimp1984
19ef0a2b40
Remove log
2020-12-19 14:51:11 -05:00
chimp1984
852ac144f3
Only log if we have banned nodes and soften language as its not really banned, but rather deactivated/revoked node
2020-12-19 14:50:44 -05:00
chimp1984
2b53db2e21
Show all Capabilities
2020-12-19 14:50:08 -05:00
chimp1984
1ca527447e
Change warnings of banned filter to info level
2020-12-19 14:49:55 -05:00
chimp1984
7e77991cb5
Only log if we removed an offer from a trade not if deactivated
2020-12-19 14:49:36 -05:00
ghubstan
87f75ee10c
Configure GrpcVersionService's rate metering interceptor
...
This change demonstrates how a method call rate metering interceptor
is configured for a gRPC service. GrpcVersionService uses a custom
rate metering interceptor, or none. A commented out, 'default'
interceptor is defined as a usage example.
2020-12-19 16:41:26 -03:00
chimp1984
d65471e976
Remove dev log
2020-12-19 14:34:49 -05:00
chimp1984
55b2cf6259
Change period for statistics log to 5 min instead of 1 min to make it less verbose
2020-12-19 14:34:34 -05:00
chimp1984
9d4d116508
Change log level.
...
For 1.3.9 filter we expect a error log but dont want to show it as warning
2020-12-19 14:34:09 -05:00
chimp1984
dc19e31fe5
Change log level to debug. Fix wrong method name in log.
...
We request each min. the price feed so that get very verbose
2020-12-19 14:33:28 -05:00
ghubstan
ea97a801e5
Don't cancel gRPC call if an interceptor does not meter all methods
2020-12-19 16:31:41 -03:00
ghubstan
bb8d2ae7c4
Inject Config into CoreApi
2020-12-19 15:50:00 -03:00
ghubstan
9f679deb08
Add license note and toString method
2020-12-19 15:47:20 -03:00
ghubstan
830a5f009a
Add license note
2020-12-19 15:43:44 -03:00
ghubstan
455ed67f9b
Add GrpcServiceRateMeteringConfigTest
2020-12-19 15:41:55 -03:00
ghubstan
5de910a03d
Add unit test dependencies to daemon subproject
2020-12-19 15:40:27 -03:00
ghubstan
b307593c82
Make CallRateMeteringInterceptor configurable via json
...
This adds a GrpcServiceRateMeteringConfig class that can read and
write rate metering interceptor config files, and configure
a gRPC rate metering service interceptor at startup.
This seems excessive, but we need to be able to test and tune
method rate metering without having to change hard coded, default
interceptor rate meters.
2020-12-19 15:32:40 -03:00
ghubstan
a5ed17e43f
Add license comment, stop & toString methods, and make isRunning transient
2020-12-19 13:14:06 -03:00
chimp1984
af9f2a9643
In case a reset of the dao state was triggered we delete
...
now all dao store files and request a shut down of the app.
After a restart the resource files are used. This avoids cases where a resync from
genesis got triggered (observed on seed nodes, not on desktop apps).
Seed nodes and headless apps get shut down automatically.
In case of the desktop app we show a warn popup with shutdown
button and no close button, so we enforce a shutdown to avoid
complications in case the user would continue.
2020-12-18 20:29:47 -05:00
sqrrm
e2c8e4dff6
Merge pull request #4965 from ripcurlx/update-data-stores-for-v1.5.2
...
[v1.5.2] Update data stores for v1.5.2
2020-12-18 23:09:04 +01:00
Christoph Atteneder
7c0d02ad09
Make it easier to translate trade roles
2020-12-18 20:48:42 +01:00
sqrrm
b04a56e543
Merge pull request #4969 from ripcurlx/improve-translations-in-trade-details
...
Make it easier to translate trade roles
2020-12-18 19:06:49 +01:00
Christoph Atteneder
9a54ccc077
Make it easier to translate trade roles
2020-12-18 17:06:56 +01:00
Christoph Atteneder
400a713a41
Fix private notification style issue in dark mode
2020-12-18 15:57:07 +01:00
Christoph Atteneder
7fcb857fd3
Use sign state icon selector for payment account cell factory
2020-12-18 11:57:05 +01:00
Christoph Atteneder
4736bb806a
Limit badge display to two digits
...
Supporting three digits in this UI element wouldn't
work properly in all our use cases
2020-12-18 10:51:39 +01:00