Commit graph

2941 commits

Author SHA1 Message Date
Manfred Karrer
4c4084cf6d
Increase offer TTL and decrease refresh interval
- We get about 300 refresh msg / min. That causes quite  a bit of load
for the network. I think it is safe to increase TTL from 7 to 9 minutes
and change REFRESH_INTERVAL from 5 to 6 min. and
REPUBLISH_INTERVAL from 30 to 40 min.
2019-03-04 01:45:40 -05:00
Manfred Karrer
c65decfeaf
Add prog args for connection parameters
- Add program args: msgThrottlePerSec, msgThrottlePer10Sec,
sendMsgThrottleTrigger and sendMsgThrottleSleep
- Add ConnectionConfig class with static injected field in Connection
- Cleanups
2019-03-04 00:57:29 -05:00
Manfred Karrer
ed6fa7b1a3
Increase TTL for offer from 7 to 8 min.
We got reports that offers got removed and re-added even if the maker
had good network connections. Seems the network did not propagate the
refresh msg in time or get too crowded. Increasing the TTl should help
to make those cases more rare. To decrease the refresh rate from 5 min
to 4 min. might be more risky as it would create much more traffic.
2019-03-03 22:57:33 -05:00
Manfred Karrer
0711ab936d
Reduce timeout to 90 sec
- We had it initially at 60 sec. and increased it as attempt to fight
those timeout errors, but it did not help. So letting the user wait
longer as needed does not make sense.
2019-03-03 20:46:10 -05:00
Manfred Karrer
997819eab4
Add line break 2019-03-03 20:01:10 -05:00
Manfred Karrer
44f57984f6
Merge branch 'master' into add-live-trading 2019-03-03 19:24:10 -05:00
Manfred Karrer
b9bfa83015
Merge branch 'master' into avoid-taker-fee-publishing-for-failed-trades 2019-03-03 18:47:23 -05:00
Manfred Karrer
c5a383d777
Fix balance for confiscated bonds 2019-03-03 18:41:57 -05:00
Manfred Karrer
e414e91c46
Refactor: Rename onParseTxsCompleteAfterBatchProcessing to
onParseBlockCompleteAfterBatchProcessing
2019-03-03 17:56:43 -05:00
Manfred Karrer
8d73308796
Refactor: Rename onParseTxsComplete to onParseBlockComplete 2019-03-03 17:56:05 -05:00
Manfred Karrer
a0dd0101a7
Fix balance update in case at vote result. Rename methods
- To ensure the balance is updated in case we have a comp. request we
need to ensure that the vote result is completed before our balance
update is called.

- Remove updateBsqWalletTransactions call at constructor as nothing is
ready anyway here

- Refactor: Rename addBsqStateListener to addDaoStateListener
and removeBsqStateListener to removeDaoStateListener
2019-03-03 17:55:08 -05:00
Manfred Karrer
568be3def8
Add missing check for isAvailableForSpending at unverifiedBalance 2019-03-03 17:14:47 -05:00
Manfred Karrer
1802508c7c
Fix BSQ balance display for unconfirmed change outputs
- Add verifiedBsqBalance and unconfirmedChangeBalance
- Remove totalBsqBalance
- Make text for different balances more explicit
2019-03-03 15:05:19 -05:00
Manfred Karrer
9475cf2897
Merge branch 'master' into allow-spending-unconfirmed-bsq-utxs 2019-03-03 12:12:22 -05:00
Manfred Karrer
992480d3a7
Refactoring: Renaming 2019-03-03 02:28:37 -05:00
Manfred Karrer
54e39c3067
Remove dev button, add "trade instant" checkbox 2019-03-03 02:09:52 -05:00
Manfred Karrer
11adc99f3c
Use super classes for cryptCurrencyAccount and payload 2019-03-03 01:31:26 -05:00
Manfred Karrer
6c11fc18c7
Add altcoin payment method for live trading
- Add LiveAsset account, payment method, AccountPayload
- Extract super classes for normal CryptoCurrenyAccount and payload and
LiveAssetAccount and payload
- Add isAsset method
- Add button for creating a live asset account

As it is a bit tricky to use the AccountForm for both methods and add a
checkbox there so defined which payment method to use I added a button
to add an AccountForm with the LiveAssets passed. This is just
temporary to be able to test a bit more and see if there are any
critical issues. We should unify that form but that might require a bit
of refactoring of the CryptoCurrencyForm.
2019-03-03 01:12:54 -05:00
Manfred Karrer
e62557c759
Merge branch 'master' into allow-spending-unconfirmed-bsq-utxs 2019-03-02 01:45:32 -05:00
Manfred Karrer
dd96a185ea
Delay broadcasting of taker fee tx
To avoid the issue with lost taker fees if the take-offer attempt fails,
we delay the publishing of the taker fee tx just before the deposit tx
gets published.
The taker fee tx must not be committed to the wallet to avoid that the
wallet would require a resync in case the tx is not published.
If the tx is not committed the addresses used there are not considered
as used and that would cause issues with the address entry context
assignment for the deposit tx. To avoid those issues we need to force
the creation of new addresses used for the multisig and payout address
entries. To be sure that happens before any of the following tasks make
use of those address entries we do that already in the createTakerFee
task.
For BSQ fee tx it behaves similar but needs separate testing.
2019-03-01 22:56:46 -05:00
Devin Bileck
5293b4a494
Update bond lockup prompt
- Changed display string from "lockup time" to "unlock time"
otherwise it may be confused with how long it takes to lock
up the bond.
- Included estimated time duration (e.g. days) for the unlock time.
2019-03-01 16:37:02 -08:00
Manfred Karrer
4332c16886
Cleanup 2019-03-01 18:21:03 -05:00
Manfred Karrer
03d0a22580
Allow spending of unconfirmed BSQ change outputs
When creating a BSQ transaction (actually at commit time as we can create a tx and then
cancel it in the confirmation popup) we store the change output (only that not the other
possible BSQ output) in a persisted list. The BsqCoinSelector will take that list to
allow spending those coins. We use the txType to find the index of the cahnge output.
We only have one change output in the transactions created in Bisq. Multiple change
outputs would be valid but our goal is only increased usability in the Bisq app and it is
not related to validation rules.

We update out list at each new block confirmation.

With that approach we avoid too much dependencies to the BitcoinJ side.

- Add UnconfirmedBsqChangeOutputListService and persisted UnconfirmedBsqChangeOutputList
for storing unconfirmed outputs
- Add lookup for unconfirmed BSQ change outputs at BsqCoinSelector and allow spending if
found
- Pass TxType for walletsManager.publishAndCommitBsqTx calls
- Add TxType to bsqWalletService.commitTx
- Refactor getPreparedSendTx methods for BSQ and BTC sending to one common method with a
coinselector parameter.
- Add getChangeAddress method to BsqWalletService to make change outputs more explicit
- Add unconfirmedChangeBalance to onUpdateBalances handlers
- Rename availableBalance to availableConfirmedBalance in onUpdateBalances
- Unify onUpdateBalances parameter names
2019-02-28 23:22:43 -05:00
Oscar Guindzberg
b55073cf1b Basic support for version 2 transactions. Cherry pick bitcoinj@850f219 2019-03-01 00:09:03 -03:00
Manfred Karrer
c565156b58
Change log level. Log notification sendMessage only if really sent. 2019-02-28 14:10:29 -05:00
Oscar Guindzberg
3476765a90 Use Transaction.getIncludedInBestChainAt() 2019-02-28 15:20:41 -03:00
Manfred Karrer
a9ee15d9f6
Revert 2473067b09
Seed nodes do not connect to correct network. The PR needs to be better
tested and fixed.
2019-02-27 14:00:05 -05:00
Manfred Karrer
740c112b48
Update seednode operator 2019-02-27 13:21:34 -05:00
Manfred Karrer
2473067b09
Merge pull request #2464 from freimair/seedNodeRepo_refactoring
Seed node repo refactoring
2019-02-27 13:18:06 -05:00
Florian Reimair
37115294d3
Remove testnet seed node repo 2019-02-26 10:38:09 +01:00
Florian Reimair
17d8d3fed6
Incorporate DAO_TESTNET 2019-02-25 15:58:27 +01:00
Florian Reimair
df540d7ce8
Honor manually provided seed nodes 2019-02-25 14:52:22 +01:00
Florian Reimair
282b0f2ef2
Refactor SeedNodeRepo stuff 2019-02-25 14:51:38 +01:00
Manfred Karrer
e52ac9dca3
Fix incorrect available balance for voting
- Subtract vote fee from available wallet balance
- Add log for errors
- Update view in error case
2019-02-24 14:23:19 -05:00
Manfred Karrer
e369c76d28
Merge pull request #2444 from devinbileck/github-redirects
Use URL redirects to GitHub content
2019-02-24 11:07:56 -05:00
Mr QWC
4500769f89 List Qwertycoin (QWC)
Official project URL: https://qwertycoin.org
Official block explorer URL: https://explorer.qwertycoin.org

Included is a pop up message to let QWC senders know what is required of them in the event a trade goes to arbitration.
2019-02-23 23:44:56 +01:00
Manfred Karrer
544f065b89
Fix wrong postfix for db files 2019-02-21 15:27:54 -05:00
Manfred Karrer
a8a1397728
Update strings 2019-02-21 15:08:05 -05:00
Manfred Karrer
cad16e0f92
Prevent connection to localhost bitcoin node if dao testnet is used (fix) 2019-02-21 13:24:09 -05:00
Manfred Karrer
0561c12a90
Prevent connection to localhost bitcoin node if dao testnet is used (fix) 2019-02-21 12:25:48 -05:00
Manfred Karrer
518fe724d9
Prevent connection to localhost bitcoin node if dao testnet is used 2019-02-21 12:00:35 -05:00
Christoph Atteneder
6315ca0056
Change from Testnet to DAO Testnet setting 2019-02-21 15:17:31 +01:00
Manfred Karrer
d47fec2620
Merge pull request #2447 from ManfredKarrer/dao-serverside-regtest
Dao serverside regtest
2019-02-21 07:32:40 -05:00
Manfred Karrer
0800301539
Use REGTEST as network for BTC_DAO_TESTNET
- As teh network is used for filtering asset types BSQ has 3 asset
types, one per network we need to use REGTEST as network. The methods
for checking which BaseCurrencyNetwork are using name() now instead of
network as we have 2 times REGTEST.

- Fix bug with not calling showFeeInfoAndPublishMyProposal for bonded
role proposals.
2019-02-20 21:49:05 -05:00
Manfred Karrer
a188aa6dfa
Use mainnet notwork id for test as testnet does not has any seed node defined 2019-02-20 20:49:02 -05:00
Manfred Karrer
8865ba6e9a
Merge pull request #2445 from devinbileck/bonded-role-unlock-time
Update bonded role unlock time
2019-02-20 20:07:00 -05:00
Devin Bileck
c5beda4d3d
Update display strings
Capitalized proper names (GitHub, YouTube, BTC) and initial character
for a few strings.
2019-02-20 16:45:56 -08:00
Devin Bileck
f8385a96d6
Update bonded role unlock time
Use the defined unlock time on mainnet, an arbitrarily low value on
regtest for dev testing, and a relatively short time on testnet for
testing purposes.
2019-02-20 16:17:15 -08:00
Devin Bileck
e8d4ed2670
Use URL redirects to GitHub content
URL redirects for downloads, source code, roles; all of which currently
go to GitHub.

See bisq-network/bisq#2429
2019-02-20 14:49:57 -08:00
Manfred Karrer
ece8d50ff1
Add num tx to log when new block is parsed 2019-02-20 14:00:49 -05:00