Commit Graph

13717 Commits

Author SHA1 Message Date
ghubstan
9a4e311193
Fix file conflict
The createoffer trigger price was defined as the 0 default value
in the gRPC request object (causing the file conflict with the
main branch).  This line can be removed because a protobuf
long's default value is 0.
2021-01-13 09:31:34 -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
b80a654fe1
Add v2 nodes to monitor 2021-01-11 23:34:55 -05:00
chimp1984
9b026868f8
Add 4 olds v2 seed nodes 2021-01-11 23:29:51 -05:00
chimp1984
3f8972bf87
Call init after setting connectionState and connectionStatistics 2021-01-11 22:38:49 -05:00
sqrrm
e565a18bc5
Merge pull request #5066 from chimp1984/add-usd-volume-to-tradestatistics-chart
Add toggle for displaying volume in tradestatistics chart in USD
2021-01-11 23:06:13 +01:00
ghubstan
f1a6783c15
Display fiat ccy code in upper case 2021-01-11 14:56:47 -03: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
ghubstan
02931967fb
Merge branch 'master' into 03-support-trigger-price 2021-01-11 12:50:11 -03:00
Christoph Atteneder
917637c4a9
Merge pull request #5054 from chimp1984/add-csv-export-to-bsq-tx-view
Add csv export to bsq tx view
2021-01-11 11:14:27 +01: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
4e444269af
Remove unnecessary ObservableList 2021-01-08 19:57:39 -05:00
chimp1984
ec7521628b
Only update selectedTradeStatistics if selected currency has
changed or we got added new trade stats
2021-01-08 19:53:40 -05:00
chimp1984
2006f58580
Refactor: Rename tradeStatisticsByCurrency to selectedTradeStatistics 2021-01-08 19:43:24 -05:00
chimp1984
397a97a899
Call fillTradeCurrencies only once at activate 2021-01-08 19:42:51 -05:00
chimp1984
b3c8e20d66
Fix available height calculation
Fix incorrect removeListener call on priceColumn.textProperty()
instead of priceColumnLabel
2021-01-08 19:31:33 -05:00
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