catbref
3fdef9ea6d
Fix P2SH refund "non-final" error issue
...
According to Bitcoin source, CheckFinalTx() in validation.cpp ~line 223,
we need to make sure median blocktime has passed P2SH refund transaction's
nLockTime.
Previously we were erroneously checking that median blocktime was in the past.
This should fix issues where refunding P2SH results in a "non-final" error
from the ElectrumX server network.
4 years ago
catbref
332c917c94
Fix ALICE-based PRESENCE transactions.
...
PRESENCE transactions were previously validated using Bob's trade key (in address form).
But as PRESENCE transactions are already emitted by Alice, her trade key is also used
(if present in trade data by virtue of AT being locked to Alice).
Similarly, Alice's trade-bot won't even try to build PRESENCE transactions if her
trade key isn't publicly visible to other peers, i.e. after AT is locked to Alice.
4 years ago
catbref
35b0ac78b8
Bump ElectrumX transaction cache size from 100 to 200
4 years ago
catbref
047627a6e5
Force bitcoinj keychain lookaheadThreshold to zero so we always generate more keys
4 years ago
catbref
e4e775a107
Bump to v1.3.8
4 years ago
catbref
5d6811bd50
Workaround for block 212937 issue
4 years ago
catbref
688f215dfd
Allow PresenceType filtering on presence websocket via presenceType query param
4 years ago
catbref
7cbdbbcc8d
Allow exception-free conversion from String to PresenceType
4 years ago
catbref
4e89b8fbac
No need to create a map entry for null foreignBlockchain in TradeOffersWebSocket
4 years ago
catbref
70ec8cb11f
Add public key in Qortal address form to tradeoffers and presence websockets
...
This aids matching PRESENCE to corresponding trade offers for use in UI.
Also tighten up visibility of some fields in ChainChainOfferSummary and
PresenceInfo to private.
PresenceInfo.address should map to CrossChainOfferSummary.qortalCreatorTradeAddress
which is "AT creator's ephemeral trading key-pair represented as Qortal address"
4 years ago
catbref
0f0266609f
Add trading price estimate API call GET /crosschain/price/{blockchain} where blockchain is something like LITECOIN
4 years ago
catbref
ecfa6e994e
Add API call POST /admin/repository/backup to trigger immediate backup
4 years ago
catbref
ed4a45f214
Force blocking DB backup to improve integrity of backup files
4 years ago
catbref
e953be6e4a
In pom.xml, have Maven surefire plugin skip tests by default
4 years ago
catbref
bd51806a0d
Improve Block.getBytesForMinterSignature()
4 years ago
catbref
625dbfbbd7
Unify BlockInfo into BlockSummaryData, removing minterAddress (unused) and extra repository calls
4 years ago
catbref
1c6ea0a860
Improvements to ElectrumX, Bitcoin-y aspects, etc.
...
Add caching of transactions fetched via ElectrumX to reduce network load and speed up API response.
Fix handling ElectrumX servers that don't want to supply verbose transaction JSON.
Hide lots of data in BitcoinyTransaction that isn't needed by current API users.
4 years ago
catbref
3706cd5ff7
Return list, not set, of wallet transactions via API and provide better (usable) examples
4 years ago
catbref
934cd1d511
Add support for preferred blockchain to /websockets/crosschain/tradebot via foreignBlockchain query param
4 years ago
catbref
68e3d3b989
Add preferred-blockchain filtering to /websockets/crosschain/tradeoffers via foreignBlockchain query param
4 years ago
catbref
31fa916156
Add filtering by foreign blockchain to API crosschain calls
4 years ago
catbref
456bb3ca63
Include output addresses, if present, in BitcoinyTransaction
4 years ago
catbref
b07ad094c1
Fix DELETE /crosschain/tradebot by adding missing repository.saveChanges()
4 years ago
catbref
d766cfaa67
Fix API/websockets that were still BitcoinACCTv1-only
4 years ago
catbref
acc616c204
Add defensive code to EventBus to catch unexpected exceptions
4 years ago
catbref
8707f154ee
Add support to ElectrumX for barring servers that don't give us the data we need
4 years ago
catbref
992427f0e0
Fix NPE due to unboxing null/no entry from PREVIOUS_STATES.get() in TradeBotWebSocket. Usually triggered when creating new trade-bot entry while having open websocket connection.
4 years ago
catbref
2c84add935
Bitcoiny improvements
4 years ago
catbref
e8fc91fd34
Minor work on ByteArray and associated tests
4 years ago
catbref
8c9cf4a02d
Add API support for listing Bitcoin/Litecoin wallet transactions
4 years ago
catbref
23f0969b2d
Requesting BTC/LTC wallet balance now accepts public key xpub/tpub too
4 years ago
catbref
cf82813280
Report foreignBlockchain and acctName in results for API call GET /crosschain/tradeoffers
4 years ago
catbref
753fa4dfa9
Remove extraneous boxing/unboxing from PresenceWebSocket
4 years ago
catbref
58ff338ab3
Now Transaction.importAsConfirmed() calls Controller.onNewTransaction(), removing call from API POST /transactions/process and Controller.onNetworkTransactionMessage()
4 years ago
catbref
064e12a57b
Improve documentation regarding deadlock in EventBus
4 years ago
catbref
54bb8ed817
New PRESENCE-related API websocket at /websockets/presence
4 years ago
catbref
b651eae258
Notify EventBus with NewTransactionEvent in Controller.onNewTransaction
4 years ago
catbref
7562d9bbf8
Fix potential NPE when closing a websocket that failed to open properly
4 years ago
catbref
1b50dd5adf
Modify API TransactionsResource to notify Controller after closing repository handle/session
4 years ago
catbref
c10a5db280
Fix PresenceTransaction to work with any ACCT, not only BitcoinACCTv1
4 years ago
catbref
500690be49
Add ATRepository.getAllATsByFunctionality() to fetch ATs matching selection of code hashes
4 years ago
catbref
778ac35ee6
Improve HSQLDBRepository.temporaryValuesTableSql to work with Collection, not just List
4 years ago
catbref
c16a664a78
Add toString() to ByteArray
4 years ago
catbref
75a265f89a
Improve SupportedBlockchain enum
4 years ago
catbref
ddb55210b4
Merge branch 'presence-txn' into LTCv3-with-presence
4 years ago
catbref
e093520696
WIP: PRESENCE - TradeBot support, moved PresenceType enum, added Presence-only transaction deadline override
4 years ago
catbref
cfacddcb36
Change Controller.deleteExpiredTransactions to use Transaction-subclass .getDeadline() instance method call instead of static Transaction.getDeadline(transactionData) which allows Transaction subclasses to override with custom deadlines/expiry periods
4 years ago
catbref
d2dea3ff35
BlockMinter now notifies Controller of new block while still holding blockchain lock, bringing it in line with Synchronizer
4 years ago
catbref
865fcb95bf
In pom.xml, have Maven surefire plugin skip tests by default
4 years ago
catbref
a52c089728
WIP: PRESENCE transactions - support only TRADE_BOT type and restrict to known trades
4 years ago