Commit Graph

11754 Commits

Author SHA1 Message Date
jmacxx
ac10d71f78
Add XMR proof result status code TRADE_LIMIT_EXCEEDED 2020-08-27 16:44:32 -05:00
chimp1984
21ff2df232
Remove dev logs 2020-08-27 16:42:55 -05:00
chimp1984
627052755b
Fix log 2020-08-27 15:47:51 -05:00
chimp1984
e780d49d55
Merge branch 'improve-network-statistics' into bundle-msg-at-broadcast 2020-08-27 15:43:33 -05:00
chimp1984
8c619530a4
Remove display of data from last second 2020-08-27 15:43:13 -05:00
chimp1984
b1702f7a6d
- Add shutdown handling to broadCaster.
It is important that we flush our queued requests
at shutdown and wait until broadcast is completed as a maker need to
remove his offers at shutdown.

- Add handling for the case that there are very few connections (as in
dev setup).

- Make BundleOfEnvelopes extend BroadcastMessage

- Add complete handler for broadCaster to shutdown in P2PService and
wait with shutdown of other services until broadcaster is completed.
- Remove case for repeated shutdown call on P2PService as it cannot
happen.
2020-08-27 15:31:41 -05:00
ghubstan
2d3b29a8f3
Upgrade JFoenix to v9.0.10
This commit & PR upgrades JFoenix from v9.0.6 to v9.0.10, to avoid an
NPE thrown when registering a DisputeAgent in an arbitartor (regtest)
desktop's account view.

The JFoenix com.jfoenix.adapters.ReflectionHelper class has a getField
method that silently swallows a Throwable and returns null.  After
clicking ALT-D or ALT-N in the an arbitrator's desktop -> accounts view
(to register dispute agents) a private field cannot be accessed via
reflection, and bisq.desktop.components.JFXTextFieldSkinBisqStyle#updateTextPos()
throws an NPE.

The cause of the NPE is due to a failure to create the textNode value
in the JFXTextFieldSkinBisqStyle constructor:
 textNode = ReflectionHelper.getFieldContent(TextFieldSkin.class, this, "textNode");

If this happens,the UI becomes unusable -- many views are blank.
2020-08-27 16:34:52 -03:00
chimp1984
bef470031e
Merge branch 'improve-network-statistics' into bundle-msg-at-broadcast 2020-08-27 09:33:31 -05:00
cd2357
43cd6e9bf5
Exclude spot price provider tests by default
Exclude these tests from the default gradle test task. However, allow the option of having them included by specifying an optional gradle parameter (-Dtest.pricenode.includeSpotProviderTests=true).
2020-08-27 14:10:37 +02:00
Jelle Besseling
61d730abf9
Add Tether token support via ERC20 and Omni 2020-08-27 11:55:23 +02:00
Christoph Atteneder
a6a38a1ac1
Merge pull request #4437 from devinbileck/add-mempool.bisq.services
Add mempool.bisq.services explorer and mempool fee estimation provider
2020-08-27 11:06:41 +02:00
jmacxx
c6f1e5274f
Merge remote-tracking branch 'origin/master' into add-xmr-tx-key-service-2 2020-08-26 22:17:58 -05:00
jmacxx
ca8f53c2c2
Implement XMR tx proof autoconfirm feature
* XMR seller is prompted to enter txId and viewkey.
* looks up the XMR transaction to verify that it has confirmed
* user can run their own validating service, or use the ones provided
* 100% agreement of all chosen services is necessary for confirmation
* feature can be configured and turned on/off from settings screen
* feature can be globally turned off via admin filter
* two code review passes from chimp1984
* one text review from m52go
2020-08-26 21:51:14 -05:00
jmacxx
8cb716b802
Improve warning message regarding insufficient BSQ
Improve the warning message to explain why BSQ balances
close to 5.46 are not sufficient to be used for trade fees,
due to dust limits in the Bitcoin protocol.

Fixes #4439
2020-08-26 20:49:38 -05:00
sqrrm
2cc0e4134b
Reload dispute layout on reopen
When a dispute is reopened it now shows the chat text entry field.
2020-08-26 13:40:49 +02:00
Devin Bileck
51f318d47f
Add mempool.bisq.services explorer and mempool fee estimation provider 2020-08-26 00:01:22 -07:00
chimp1984
d8da20acee
Remove TODO 2020-08-26 00:20:47 -05:00
chimp1984
a88e8f88fa
Don't use full toString result for thread name 2020-08-26 00:02:57 -05:00
chimp1984
9f8e9ee791
Rename properties, improve logging 2020-08-25 23:32:27 -05:00
chimp1984
d59a3adbc3
Add logs 2020-08-25 23:30:52 -05:00
chimp1984
c6c56b35f9
Increase INTERVAL_SEC to 30-60 sec from 5-35 sec. 2020-08-25 22:50:36 -05:00
chimp1984
f67a46791b
LAST_ACTIVITY_AGE_MS should be millisec not sec 2020-08-25 22:49:12 -05:00
chimp1984
8747da40f6
Merge branch 'improve-network-statistics' into bundle-msg-at-broadcast 2020-08-25 22:46:40 -05:00
chimp1984
179f79e5d7
Convert totalSentMessagesPerSec to a string before reset to make it
available at logging.
Don't clear map to avoid null pointers as diff. threads access the data.
2020-08-25 22:46:24 -05:00
chimp1984
04b6c2abea
Don't wrap into BundleOfEnvelopes is only 1 message is used 2020-08-25 22:43:24 -05:00
chimp1984
b8152d68ae
Change BROADCAST_INTERVAL_MS to 2 sec. 2020-08-25 22:42:48 -05:00
chimp1984
ea50ce8f49
Merge branch 'improve-network-statistics' into bundle-msg-at-broadcast 2020-08-25 22:12:58 -05:00
chimp1984
876c99e6e3
Fix display strings 2020-08-25 22:09:15 -05:00
chimp1984
b97effc6b1
Change log level 2020-08-25 21:42:13 -05:00
chimp1984
5a167d618e
Add more detailed network statistics
- Show in network settings UI data sent/received, total messages
sent/received, msg/sec and messages of last second
- Log every minute statistics
2020-08-25 21:39:23 -05:00
chimp1984
06f407fda3
Add todo and curly brackets 2020-08-25 21:31:06 -05:00
chimp1984
5433707fa2
Bundle broadcast requests 2020-08-25 21:30:33 -05:00
ghubstan
4d12b8f3d3
Allow remote debugging of background Bisq apps
A unique hard coded debug listening port is assigned to the different
Bisq app types in the BisqAppConfig enum, and background Bisq apps
will be started with remote debug options if the scaffold-setup method
is passed an --enableBisqDebugging=true option.

* Added enableBisqDebugging (default=false) option to ApiTestConfig.

* Added remoteDebugPort field to BisqAppConfig enum.

* Added debugOpts field to BisqApp (using BisqAppConfig#remoteDebugPort).

* Appends debugOpts to exported JAVA_OPTS environment variable if present.

* Removed messy quotes from BisqAppConfig enum javaOpts values.

* Removed redundant return statement from BisqApp#shutdown().
2020-08-25 12:59:55 -03:00
ghubstan
b9c1feba9a
Remove redundant ApiTestConfig options
This change removes three options: runArbNodeAsDesktop,
runAliceNodeAsDesktop, and runBobNodeAsDesktop, which should have
been deleted when the supportingApps option was added.  The comma
delimited list of apps passed with the supportingApps option
now determines whether arbitration / bob / alice nodes are started as
desktops or daemons.
2020-08-25 12:35:57 -03:00
ghubstan
cb6166c65f
Remove duplicated grpc stub creation logic
The :apitest GrpcStubs class was removed and recreated in the :cli
subproject, to be used by both :cli and :apitest.  CliMain was changed
to use the new GrpcStubs.
2020-08-25 12:01:29 -03:00
ghubstan
2c803ef811
Move :cli test.sh to :apitest mainnet-test.sh
* The bats test script was moved to the apitest subproject and renamed.

* Version tests were updated for release 1.3.7.

* The duplicated "test getoffers buy eur check return status" was
  replaced by a new "test getoffers sell eur check return status" test.

* The bats dependency was switched to bats-core because development
  has halted on https://github.com/sstephenson/bats/tree/master.
  The new bats repository is
          https://github.com/bats-core/bats-core/tree/master
2020-08-25 11:42:09 -03:00
ghubstan
ac3c6e07f0
Fix setUpScaffold() signature
Adds the missing String[] params to the method signature, so test cases
can pass any needed combination of options to the scaffolding setup
from a @BeforeAll method.
2020-08-25 11:29:27 -03:00
sqrrm
f45a26ca54
Merge pull request #4428 from ghubstan/rm-duplicate-compositeoptset
Remove duplicate CompositeOptionSet class
2020-08-25 13:09:49 +02:00
sqrrm
10215b850d
Merge pull request #4427 from ghubstan/mv-grpc-boilerplate-to-daemon
Move gRPC boilerplate from :core to :daemon
2020-08-25 13:05:10 +02:00
Christoph Atteneder
30eeb6ec61
Merge pull request #4398 from pedromvpg/header-tweaks
Header and other visual tweaks
2020-08-24 20:46:47 +02:00
ghubstan
c4023869bf
Remove duplicate CompositeOptionSet class
This commit changes the access modifier on
bisq.common.config.CompositeOptionSet to make
it visible to bisq.apitest.config.ApiTestConfig,
and the duplicate bisq.apitest.config.ApiTestConfig
was deleted from 'apitest'.
2020-08-24 15:29:32 -03:00
ghubstan
d0397c1c62
Move gRPC boilerplate from :core to :daemon
This change moves gRPC boilerplate classes from the :core.grpc pkg
into a new :daemon.grpc pkg.

* The :core.grpc pkg was renamed :core.api, and no longer has any
  dependencies on gRPC libraries.

* All core service classes in the :core.api pkg are now package
  protected, excepting CoreApi, making CoreApi the only possible
  entry point for all Grpc*Service -> -Core*Service calls.

* All grpc service classes in the :daemon.grpc pkg are now package
  protected, excepting GrpcServer;  the only class depending on
  Grpc*Service class is GrpcServer.

* gRPC dependencies were moved from the gradle.build file's :core
  subproject to :daemon.
2020-08-24 15:09:15 -03:00
pedromvpg
636e20f1c6
Shorten line length 2020-08-24 13:56:52 -04:00
sqrrm
d5c81cedd6
Merge pull request #4366 from ghubstan/draft-apitest
Add API test harness for Linux & OSX
2020-08-24 18:57:53 +02:00
ghubstan
1de6239527
Shorten line length < 120 chars 2020-08-24 11:03:26 -03:00
chimp1984
c4932829fe
Refactoring 2020-08-24 00:37:14 -05:00
chimp1984
badc872533
Refactoring 2020-08-24 00:13:14 -05:00
Christoph Atteneder
ad72f89774
Merge pull request #4425 from wiz/reduce-seednode-maxconnections-40
Reduce seednode maxconnections setting from 50 to 40 in bisq.env
2020-08-23 14:10:19 +02:00
Christoph Atteneder
841f55b0a1
Merge pull request #4423 from wiz/pricenode-installer-use-master-branch
Modify pricenode install script to use master instead of release tag
2020-08-23 14:07:04 +02:00
Christoph Atteneder
e42b07ce40
Merge pull request #4424 from chimp1984/increase-data-request-timeout
Increase data request timeout
2020-08-23 14:06:32 +02:00