Commit Graph

3055 Commits

Author SHA1 Message Date
Manfred Karrer
1df485a4fa
Remove DateTolerantPayload interface
The date check would not add real protection as the attacker could just
use a new date and we do not cross check the date with the tx date.
We could do that but it would add complexity and we have another
strategy which does not require that.
2019-04-06 19:29:31 -05:00
Manfred Karrer
5cfa2c77ac
Refactor: Rename method and parameter 2019-04-05 20:16:12 -05:00
Christoph Atteneder
400fbbd080
Merge pull request #2655 from ripcurlx/improve-tx-display-for-btc-withdrawal-from-bsq-wallet
Improve tx display for BTC withdrawal from BSQ wallet
2019-04-05 17:52:34 +02:00
Steve Jain
eda85bf2e9
Reword text in proposal fee pop-up 2019-04-05 11:10:00 -04:00
Christoph Atteneder
79376f3faf
Prevent user from creating transactions that will burn money (mining fees > amount to transfer) 2019-04-05 16:28:55 +02:00
Christoph Atteneder
3275dfed10
Improve transaction display for BTC withrawals from BSQ wallet 2019-04-05 16:28:08 +02:00
Manfred Karrer
32264070b7
Merge pull request #2643 from devinbileck/update-insufficient-funds-warning-for-proposal
Update insufficient BTC warning for issuance proposals
2019-04-04 18:28:37 -05:00
Manfred Karrer
9a6a03f1e5
Merge pull request #2646 from oscarguindzberg/regtest-fix
Bugfix for bitcoinRegtestHost=none mode
2019-04-04 18:27:30 -05:00
Oscar Guindzberg
4cb5b9d37e Fix typo 2019-04-04 19:00:12 -03:00
Oscar Guindzberg
cc73c5e37b Bugfix for bitcoinRegtestHost=none mode 2019-04-04 18:58:09 -03:00
Devin Bileck
837e79248f
Update insufficient BTC warning for issuance proposals
When attempting to submit a compensation request or reimbursement
request with insufficient BTC, the warning message only indicated that
BTC is required for mining fees. It did not indicate that BTC is also
required for the BSQ issuance.

So another display string was added and displayed when submitting an
issuance proposal with insufficient BTC funds available.
2019-04-04 12:59:30 -07:00
Manfred Karrer
e0e1472fac
Merge pull request #2635 from ripcurlx/fix-wrong-crypto-name-in-removed-cryptos
Change wrong name for Siacoin in removed crypto list
2019-04-04 10:14:26 -05:00
Christoph Atteneder
b30f166e92
Add information of Satoshis needed for coloring 2019-04-04 13:19:30 +02:00
Christoph Atteneder
383043e932
Change wrong crypto name for Siacoin in removed crypto list 2019-04-04 11:15:36 +02:00
Devin Bileck
2c001ad099
Fix incorrect required BSQ amount in warning text
When submitting a proposal with insufficient BSQ balance, the warning
message showed an incorrect required BSQ amount. The amount needed to be
divided by 100 (1 BSQ = 100 satoshis).
2019-04-03 15:17:04 -07:00
Manfred Karrer
3b16d508f4
Change log level 2019-04-03 12:22:59 -05:00
Manfred Karrer
8d22d7b926
Improve error message
See https://github.com/bisq-network/bisq/issues/2620
https://github.com/bisq-network/bisq/pull/2614#discussion_r271290565
2019-04-02 19:25:34 -05:00
Christoph Atteneder
4bbbb63c68
Merge pull request #2616 from ManfredKarrer/fix-percentage-rounding-bug
Fix wrong precision value
2019-04-02 16:51:36 +02:00
Manfred Karrer
339198bb45
Fix wrong precision value
Fixes https://github.com/bisq-network/bisq/issues/2615
2019-04-02 09:42:39 -05:00
Christoph Atteneder
8b2396e7e2
Use pt translation instead of incomplete pt_BR one 2019-04-02 10:12:45 +02:00
Christoph Atteneder
9d4c60b1e0
Update translations 2019-04-02 09:51:20 +02:00
Manfred Karrer
54f1a9ff5f
Only require change output for issuance proposals 2019-04-01 21:39:37 -05:00
Manfred Karrer
69a2a04546
Add check for mandatory BSQ output for compensation tx
Fixes https://github.com/bisq-network/bisq/issues/2613

If the user has the exact fee in his wallet no BSQ change output would
be created but that violates our requirement for compensation or
reimbursement txs.
Beside that the error message for dust outputs was not clear.
2019-04-01 21:33:11 -05:00
Manfred Karrer
6387cfa5bf
Refactoring: rename local variable 2019-04-01 21:23:00 -05:00
Manfred Karrer
eaeef7ab2d
Improve error message
See: https://github.com/bisq-network/bisq/issues/2613
2019-04-01 20:08:03 -05:00
Manfred Karrer
a3caa56709
Remove https for betanet and testnet explorers
- as the redirect does not work correctly with https
2019-04-01 17:53:49 -05:00
Manfred Karrer
70a3b30d49
Remove https for betanet and testnet explorers
- as the redirect does not work correctly with https
2019-04-01 16:48:38 -05:00
Manfred Karrer
d97de92dcd
Remove 2 dao testnet seeds
- I plan to shut them down soon after launch. I will leave 2 still
running for a few days after that...
2019-04-01 13:50:44 -05:00
Manfred Karrer
b0a2626743
Rename Bitcoin DAO Testnet to Bitcoin DAO Regtest 2019-04-01 13:44:57 -05:00
Christoph Atteneder
2942425d4c
Make create offer label cases easier to translate 2019-04-01 11:51:47 +02:00
Manfred Karrer
e9e4b49014
Add number of irregular txs to UI 2019-03-31 17:41:59 -05:00
Manfred Karrer
4d56ce9a10
Apply ExtraDataMapValidator for all extraDataMap fields 2019-03-31 17:35:14 -05:00
Manfred Karrer
dad4b04093
Update comment 2019-03-31 17:31:53 -05:00
Manfred Karrer
30a710f179
Cleanup 2019-03-31 16:30:35 -05:00
Manfred Karrer
e74ce128b3
Improve comments, cleanup 2019-03-31 16:28:34 -05:00
Manfred Karrer
431f76e058
Add BTC_DAO_TESTNET 2019-03-31 16:11:00 -05:00
Manfred Karrer
fa3ec340fa
Merge branch 'master' into add-check-for-bsq-balance
# Conflicts:
#	core/src/main/resources/i18n/displayStrings_de.properties
#	core/src/main/resources/i18n/displayStrings_el.properties
#	core/src/main/resources/i18n/displayStrings_es.properties
#	core/src/main/resources/i18n/displayStrings_fa.properties
#	core/src/main/resources/i18n/displayStrings_fr.properties
#	core/src/main/resources/i18n/displayStrings_hu.properties
#	core/src/main/resources/i18n/displayStrings_pt.properties
#	core/src/main/resources/i18n/displayStrings_ro.properties
#	core/src/main/resources/i18n/displayStrings_ru.properties
#	core/src/main/resources/i18n/displayStrings_sr.properties
#	core/src/main/resources/i18n/displayStrings_th.properties
#	core/src/main/resources/i18n/displayStrings_vi.properties
#	core/src/main/resources/i18n/displayStrings_zh.properties
2019-03-31 16:09:53 -05:00
Manfred Karrer
c7bd2ee4b8
Add BTC_DAO_TESTNET again to keep supporting current dao testnet
- It is more safe to separate the BTC_DAO_TESTNET and BTC_DAO_REGTEST
by the network ID as that prevents on the P2P network layer that the
network could interconnect. We would have risked that we receive network
data from the other network as users would use the persisted peers for
connections.
2019-03-31 15:55:55 -05:00
Manfred Karrer
73db81a34f
Add more validation
- Check max length of strings and byte arrays
- Check that tx ID has 64 chars
- Add ExtraDataMapValidator for validating extraDataMap fields
2019-03-31 15:49:37 -05:00
Manfred Karrer
122bc80cdd
Use null instead of empty string for txId 2019-03-31 15:47:21 -05:00
Manfred Karrer
fe646e5436
Add string validations 2019-03-31 13:37:55 -05:00
Manfred Karrer
d5fc7cb97e
Use burnedBsq field in Tx for burnedFee and invalidatedBsq
In case of an invalid tx we burn all available BSQ input. We only know
that at parsing time. We renamed the burntFee field to burntBsq to make
it more generic and use it for the burnt fee in case if a normal tx and
as invalidatedBsq in case of an invalid tx.
2019-03-30 19:35:12 -05:00
Manfred Karrer
823cec086c
Improve handling fo p2p network data broadcasts 2019-03-30 18:45:58 -05:00
Manfred Karrer
69b134b99e
Refactoring: Rename method 2019-03-30 16:57:47 -05:00
Manfred Karrer
e2d9fe1b5f
Fix comment 2019-03-30 16:53:55 -05:00
Manfred Karrer
b39c8bed41
Refactoring: Rename method 2019-03-30 16:53:33 -05:00
Manfred Karrer
1e6f0bf8e9
Refactoring: Rename method 2019-03-30 16:53:07 -05:00
Manfred Karrer
a71a573dd9
Add better comments, cleanup 2019-03-30 16:51:55 -05:00
Manfred Karrer
a28805b983
Use onParseBlockCompleteAfterBatchProcessing to avoid sequence issues
When using onParseBlockChainComplete and
onParseBlockCompleteAfterBatchProcessing the
onParseBlockCompleteAfterBatchProcessing is called earlier as
onParseBlockChainComplete which caused incorrect state update in the UI.
2019-03-30 16:02:20 -05:00
Manfred Karrer
d5c7e0a660
Improve Merit handling
- We add a filter to the getMeritStake method to avoid an exception at
getWeightedMeritAmount which would set merits to 0 in case the issuance
height blind would be larger than the vote height. I saw that error log
but could not reproduce it afterwards. It basically protects that we do
not add the issuance of the current cycle to the merit used in the
blind vote of that cycle.

- We add 1 block in the getCurrentlyAvailableMerit method to get the
same merit value if the blind vote was included in the next block.
2019-03-30 16:01:08 -05:00