Commit Graph

5496 Commits

Author SHA1 Message Date
ghubstan
629f408bdf
Add method help docs 2021-01-16 13:45:07 -03:00
ghubstan
5538914cf8
Add line break 2021-01-16 12:03:06 -03:00
ghubstan
1ad7b351b6
Remove uneeded method 2021-01-15 16:33:52 -03:00
ghubstan
ec9f783eb5
Remove switch(hardcoded enum.name)
There is no need for a switch here, the doc exists or it does not.
2021-01-15 16:25:39 -03:00
ghubstan
a067ba1228
Add new CoreHelpService and method help docs
Adds all the gRPC server boilerplate, and a simple help service
that serves method help in man page format.  Help text is maintained
in text files located in core/src/main/resources/help.

Only some of the method help text files are defined in this
change, more to be added.
2021-01-14 10:19:39 -03:00
sqrrm
f838b1a475
Merge pull request #5076 from ghubstan/03-support-trigger-price
Stub out support for OpenOffer's triggerPrice in api
2021-01-14 10:34:29 +01:00
Christoph Atteneder
01bfbe7ca0
Merge pull request #5071 from jmacxx/fix_issue_5067
Show a confirmation of successfully sending BTC or BSQ from wallet
2021-01-14 09:37:20 +01:00
sqrrm
685d79749b
Merge pull request #5065 from ghubstan/offer-protection-tools-api-integration
Integrate new protection tools into api's offer & trade services
2021-01-14 00:26:10 +01:00
ghubstan
a8d15d0161
Merge branch 'offer-protection-tools-api-integration' into 03-support-trigger-price 2021-01-13 20:03:03 -03:00
ghubstan
0e779a4bf6
Inject CoreContext into server, then set isApiUser=true
Do not set isApiUser=true based on hardcoded thread name ;-(

For requested change
https://github.com/bisq-network/bisq/pull/5065#pullrequestreview-567708569
2021-01-13 19:55:49 -03:00
ghubstan
eaf41eb2ca
Merge branch 'master' into 03-support-trigger-price 2021-01-12 11:42:25 -03: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
ghubstan
0c6005ed2d
Stub out support for OpenOffer's triggerPrice in api
This is a feature that will not be included in api v1, but partial
support is added in this change to the server.  CLI will pass a
default triggerPrice of 0 (unused) with the createoffer command.

When fully implemented, an optional trigger-price param will be
added to the CLI's createoffer method, and the value will only be
visible to offer owners.  New enableoffer and disableoffer
methods will also need to be added.
2021-01-11 14:36:51 -03:00
jmacxx
27d41c8499
Show a confirmation of successfully sending BTC or BSQ from wallet
The confirmation details include amount, recipient address and txId.
Includes a link to open txId details in the user's external block explorer.
@m52go reworded the BSQ conf explanation note.
Added "don't show again" checkbox.
2021-01-10 19:51:34 -06: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
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
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
chimp1984
5f977ffe6f
Use isSeedNode 2021-01-05 20:55:29 -05:00
chimp1984
0bb9d15653
Fix null pointer 2021-01-05 20:55:10 -05:00
chimp1984
86d0f96c6c
Remove PeerType from Connection. Use ConnectionState instead.
Remove unnecessary setPeerType calls. ConnectionState is handling that.
Only PeerManager does the setting of isSeedNode as we do not have the
required dependency in ConnectionState.
2021-01-05 20:50:46 -05:00
chimp1984
15cd42de0c
Add InitialDataRequest and InitialDataResponse marker interface for
relevant classes
2021-01-05 20:39:52 -05:00
chimp1984
f169cf1309
Refactoring: Move PeerType outside of Connection 2021-01-05 20:34:28 -05:00
chimp1984
db6722b335
Revert most changes with applying offerFilter. Leave it to @ghubstan to implement it. 2021-01-05 10:19:21 -05:00
ghubstan
18de222d38
Add new api methods 'getmyoffers' and 'getmyoffer'
Similar to 'getoffers' and 'getoffer', but filters out offers not
created by the user.  The new methods are so similar some offer list
filtering and sorting was refactored in CoreOffersService.

Also fixed some createoffer apitest cases in anticipation of a new OfferFilter,
which will filter out offers not matching any user payment account.
2021-01-04 21:43:34 -03:00
chimp1984
58a1f9c402
Remove getOffersAvailableForTaker method
Add offerFilter.canTakeOffer to getOffer and getOffers
2021-01-04 15:34:42 -05:00
chimp1984
c2174607f5
Add isTakerApiUser field to OfferAvailabilityRequest
Add UNCONF_TX_LIMIT_HIT and MAKER_DENIED_API_USER to AvailabilityResult enum
Apply handling for api filter features
2021-01-04 12:35:29 -05:00
chimp1984
95063b6c7f
Add denyApiTaker field to Preferences 2021-01-04 12:00:29 -05:00
chimp1984
b5af6bcfc7
Add missing Filter params in tests 2021-01-04 12:00:00 -05:00