Commit graph

14564 commits

Author SHA1 Message Date
ghubstan
a2b2313d19
Merge branch '02-modify-txinfo' into 03-add-long-running-trade-test 2021-03-15 11:23:09 -03:00
ghubstan
98c6a8ee67
Merge branch '01-fix-takeoffer-err-handling' into 02-modify-txinfo 2021-03-15 11:20:16 -03:00
ghubstan
1d56d79457
Refactor takeoffer reply proto & ErrorMessageHandler
- Add description msg TakeOfferReply proto, and fromProto method
  to core.offer.enum AvailabilityResult.  The description field
  maps a client usable error message to the enum.

- Adjust GrpcErrorMessageHandler to add AvailabilityResult.description()
  to takeoffer reply.

- Refactor (split up) GrpcClient's takeOffer.  Add getTakeOfferReply()
  to give clients a chance to make choices based on the reply's
  AvailabilityResult when the takeoffer command did not result in a
  trade. (Some errors are fatal, some not.)
2021-03-15 11:17:09 -03:00
BtcContributor
ebd98f850f
Add custom withdrawal transaction fee options on Send funds and remove it from settings 2021-03-15 15:03:38 +01:00
ghubstan
bc6c1769ec
Print trade info to console after successful trade 2021-03-14 13:40:34 -03:00
ghubstan
1f28fc6836
Add LongRunningTradesTest
This new api testcase can run long series' of regtest trades by looping
over modified TakeBuyBTCOfferTest and TakeSellBTCOfferTest cases.  The
purpose is to help reproduce problems and isolate bugs Bisq's core and
api layers.

LongRunningTradesTest is not enabled by default;  it will not run in a
default test environment (such a Travis CI).  Enviornment variable
LONG_RUNNING_TRADES_TEST_ENABLED must exist for the test to run.
The env variable can be set in a bash shell before running the test
case in a shell (using a gradle command), or the environment variable can
be set in an Intellij test launcher's Evironment variables field.

The modifed (short running) TakeBuyBTCOfferTest and TakeSellBTCOfferTest
cases run as before.

Changes include:

- Add static boolean isLongRunningTest to AbstractOfferTest.

- Add looping control Supplier maxTradeStateAndPhaseChecks to AbstractTradeTest.
  It uses the isLongRunningTest flag in the superclass to help define the
  wait times for trade state/phase changes during short and long running tests.

- Made AbstractTradeTest assert(true, trade.isDepositPublished) conditional upon
  isLongRunningTest value.  Long running trade test asserts have to be looser due
  to increasing latency of wallet, offer and trade operations in the server as the
  trade counts increase.

- Overload ApiTestCase#startSupportingApps with additional flag:
  startSupportingAppsInDebugMode. Default is false.  This makes
  starting background apps in debug mode a bit more convenient
  and self explanatory.
2021-03-14 13:08:53 -03:00
ghubstan
64d4c311fb
Avoid NPE due to null fee while wrapping tx in TxInfo
Add debugging convenience to core.api.model.TxInfo.
2021-03-14 12:08:13 -03:00
ghubstan
4a68773cfc
Merge branch 'master' into 01-fix-takeoffer-err-handling 2021-03-14 11:52:40 -03:00
BtcContributor
e1b9afa169
Code refactoring and delete translations 2021-03-12 11:10:20 +01:00
Christoph Atteneder
6148b610a0
Merge pull request #5231 from BtcContributor/bankidcopy
Fix copy of BankName value + BranchId/BankId
2021-03-12 09:54:00 +01:00
jmacxx
35f6ea2508
color of new badge should be red 2021-03-11 11:36:21 -06:00
BtcContributor
fbf7af8093
Change naming of variables and methods 2021-03-11 17:37:32 +01:00
sqrrm
edbac95f7c
Merge pull request #5292 from ghubstan/00-fix-corecontext-usage
Fix singleton CoreContext usage
2021-03-11 17:24:55 +01:00
Christoph Atteneder
0e6ce20453
Merge pull request #5216 from huey735/rename-summary-notes-category
Rename summary notes "Seller not responding"  category
2021-03-11 17:01:56 +01:00
Christoph Atteneder
9a2dbd7147
Merge pull request #5215 from jmacxx/fix_issue_5214
Fix Multiple Warnings on Enable All Offers
2021-03-11 17:01:05 +01:00
Christoph Atteneder
e1e7ca6cba
Merge pull request #5295 from bisq-network/hotfix/v1.5.9
Hotfix/v1.5.9
2021-03-11 16:54:41 +01:00
Christoph Atteneder
d57df53146
Merge pull request #5248 from cd2357/tor-update-guide
Document tor upgrade steps
2021-03-11 16:33:32 +01:00
Christoph Atteneder
38a9bf0277
Merge branch 'master' of github.com:bisq-network/bisq into hotfix/v1.5.9
# Conflicts:
#	build.gradle
#	desktop/package/linux/Dockerfile
#	desktop/package/linux/package.sh
#	desktop/package/linux/release.sh
#	desktop/package/macosx/create_app.sh
#	desktop/package/macosx/finalize.sh
#	desktop/package/macosx/insert_snapshot_version.sh
#	desktop/package/windows/package.bat
#	desktop/package/windows/release.bat
#	relay/src/main/resources/version.txt
2021-03-11 16:26:50 +01:00
Christoph Atteneder
fb053e85ad
Revert to SNAPSHOT version 2021-03-11 16:24:32 +01:00
Christoph Atteneder
944fa7e120
Merge pull request #5232 from BtcContributor/darkread
Fix dark mode readibility of specific texts
2021-03-11 16:22:59 +01:00
Christoph Atteneder
caac1b4c1e
Merge pull request #5272 from BtcContributor/fixbackupbutton
Fix Set Password text button
2021-03-11 16:07:26 +01:00
BtcContributor
2c945b0c40
change text and navigation 2021-03-11 15:55:47 +01:00
BtcContributor
144b3e4f9a
fix css 2021-03-11 13:23:39 +01:00
sqrrm
a1939f92e6
Merge pull request #5222 from ripcurlx/fix-key-shortcut-documentation
Fix key shortcut documentation when using CMD+Y
2021-03-11 11:55:53 +01:00
Christoph Atteneder
7394da5462
Merge pull request #5206 from jmacxx/improve_mediation_tools
Improve mediation tools / logging.
2021-03-11 11:49:58 +01:00
Christoph Atteneder
337c7bb0cd
Merge pull request #5291 from wallclockbuilder/master
Fix typo
2021-03-11 11:35:45 +01:00
Mawueli Kofi Adzoe
dda2570ee6
Fix
typo in test function name.
2021-03-11 02:26:18 -08:00
sqrrm
f97595ddc2
Merge pull request #5239 from ripcurlx/update-release-process
Add step for signature creation for Arch Linux
2021-03-11 10:22:08 +01:00
Christoph Atteneder
43b8f0afbf
Merge pull request #5209 from JaredBoone/master
Changes "Verify result" to "Check signature"
2021-03-11 09:36:44 +01:00
Christoph Atteneder
9635ed5416
Merge pull request #5293 from sqrrm/make-ngn-default
Add NGN as a default currency
2021-03-11 09:25:28 +01:00
Christoph Atteneder
0130e81600
Adapt new version number placeholder to be conform with Bash specification 2021-03-11 09:20:29 +01:00
ghubstan
48ecb5b2f9
Derive AvailabilityResult from Task errorMessage 2021-03-10 15:07:34 -03:00
ghubstan
d4d989d680
Add missing grpc exception catch blocks 2021-03-10 14:17:05 -03:00
ghubstan
697cf66d7c
Convert AvailabilityResult to error msg when takeoffer fails 2021-03-10 14:16:43 -03:00
ghubstan
d0590d93a9
Adjust grpc & core services to new takeoffer error handling
- GrpcErrorMessageHandler  A new ErrorMessageHandler implementation
  to get around the api specific problem of having to use Task
  ErrorMessageHandlers that build task error messages for the UI.

- GrpcExceptionHandler  A new method for working with the
  ErrorMessageHandler interface.

- GrpcTradesService, CoreApi, CoreTradesService:  Ajdusted takeoffer
  error handling to give a failure reason provided by the new
  GrpcErrorMessageHandler.
2021-03-10 14:16:15 -03:00
ghubstan
067a5c7a08
Inject CoreContext into OpenOfferManager, adjust test 2021-03-10 14:15:59 -03:00
ghubstan
5c097d3bcf
Adjust protos for takeoffer error handing
- Add PRICE_CHECK_FAILED to enum AvailabilityResult.
- Add enum AvailabilityResult to TakeOfferReply message.
2021-03-10 14:15:29 -03:00
sqrrm
eabb173767
Add NGN as a default currency 2021-03-10 14:41:28 +01:00
ghubstan
58100fda6a
Fix singleton CoreContext usage
After GrpcServer builds a gRPC server instance, it calls injected
CoreContext#setApiUser(true).  The same, singleton CoreContext object
is injected into CoreService constructors, which use the coreContext#
isApiUser value (set true by the server builder) to set their own class
level boolean isApiUser fields.

When CoreContext was added, I was fooled by the correct behavior I
saw while stepping through the server debugger.  But now I see that
the correct boolean value in CoreContext is only available after
CoreService constructors have finished instantiating themselves -
- not in time.

In this change, the CoreContext becomes a class level final field
in CoreServices, and the correct coreContex.isApiUser value is available
in the CoreService methods.
2021-03-10 08:26:14 -03:00
sqrrm
463f87b39e
Merge pull request #5284 from ghubstan/07-validate-paymentacct-n-new-offer
Validate offer <-> payment-acct in createoffer
2021-03-09 16:51:56 +01:00
ghubstan
389abf459d
Check valid createoffer opt values with asserts 2021-03-09 10:43:05 -03:00
sqrrm
343d311a25
Merge pull request #5273 from ghubstan/05-doc-test-disputeagents
Document test harness dispute agent registration
2021-03-09 11:53:28 +01:00
sqrrm
3ab184c8da
Merge pull request #5259 from ghubstan/04-fix-feerate-validation-bug
Fix CLI number opt validation, improve server-not-up msg
2021-03-09 11:52:29 +01:00
sqrrm
6f0f0ef5fc
Merge pull request #5250 from ghubstan/03-fix-interceptor-method-key-lookup
Fix call rate metering interceptor bug
2021-03-09 11:50:08 +01:00
sqrrm
7fa1b8043f
Merge pull request #5249 from ghubstan/02-improve-server-error-logging
Improve gRPC server error logging
2021-03-09 11:44:03 +01:00
sqrrm
03f6468d26
Merge pull request #5246 from ghubstan/01-show-cost-in-trade-output
Display buyer's cost in api's gettrade output
2021-03-09 11:41:14 +01:00
Christoph Atteneder
11964e5ed8
Merge pull request #5280 from chimp1984/prevent-persist-at-startup
Prevent persist at startup, flush at backup
2021-03-09 11:40:27 +01:00
Christoph Atteneder
b938776aad
Merge pull request #5288 from wallclockbuilder/patch-1
Replace slack with Keybase
2021-03-09 09:21:44 +01:00
Christoph Atteneder
dd7550931f
Merge pull request #5262 from BtcContributor/fixwindowslinkdao
Fix opening of proposal links in DAO on Windows
2021-03-09 09:20:30 +01:00
Mawueli Kofi Adzoe
5a31461b3d
Replace slack with Keybase 2021-03-08 13:05:00 -08:00