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
catbref
15d25649b2
WIP: PRESENCE transactions - repository support, removing older versions, tests
4 years ago
catbref
e0210635e3
Add repository support for fetching subset of unconfirmed transactions by type and/or creator
4 years ago
catbref
90b993e234
Refactor post-importAsUnconfirmed as method to be overridden by Transaction subclasses, e.g. CHAT
4 years ago
catbref
9b7c2c50fb
Initial commit with PRESENCE transaction type -- untested
4 years ago
catbref
fc7a7a1549
Bump Maven surefire plugin to v2.22.2 for better test/CI support
4 years ago
catbref
a12045c19e
Fix repository race condition from using wrong synchronization object
...
Previous fixes for "transaction rollback: serialization failure" when updating trim heights
in commits 16397852
and 58ed7205
had the right idea but were broken due to being synchronized
on different objects.
this.repository.trimHeightsLock would be a new Object() for each repository connection/session
and so not actually synchronize concurrent updates.
Implicit saveChanges()/COMMIT is still needed.
Fix is to use a repository-wide object for synchronization - in this case the repositoryFactory
object as held by RepositoryManager.
Added test to cover.
Also reduced DB trim height read to one call at start of thread for both trimming threads.
4 years ago
catbref
fccb3a3f0c
Merge branch 'master' into LTCv3-merge-test
4 years ago
catbref
62ae49b639
ApiError_de.properties & SysTray_zh.properties also converted to UTF8
4 years ago
catbref
2e8f58bb2f
ApiError_ru.properties & TransactionValidity_ru.properties converted to UTF8 for easier management
4 years ago
catbref
9e98ce220f
Revert SysTray_ru.properties back to UTF8 form
4 years ago
catbref
10c3a0c056
Update AdvancedInstaller config file with v1.3.7 values
4 years ago
catbref
69ec654e4a
Bump to version 1.3.7
4 years ago
catbref
a310e751bb
Fix slow SQL query in HSQLDBATRepository.getBlockATStatesAtHeight() - mostly used during orphaning
4 years ago
catbref
3ef8b81e51
Fix incorrect column indexes when fetching frozen AT data
4 years ago
catbref
1f409235e4
Don't rebuild repository or export node-local data during repository build if repository was 'pristine'.
...
Under certain conditions, e.g. non-existent database files, the repository would be created
and then immediately be re-created.
Not only was this unnecessary, but HSQLDBDatabaseUpdates would attempt to export the node-local
data twice, which would cause an error due to existing .script files.
The fix is three-pronged:
1. Don't immediately rebuild the repository if it's only just been built
2. Don't export the empty node-local data if repository has only just been built
3. Don't export the node-local data if it's empty
4 years ago
catbref
806baa6ae4
Fix API call referenced in DB reshape
4 years ago
catbref
58ed72058f
Another attempt to prevent "serialization failure" during trimming
4 years ago
catbref
253a994438
Add API POST /repository/checkpoint call. Renamed GET/POST /admin/repository calls to /admin/repository/data
4 years ago
catbref
5549eded38
Improve/fix use of latest block cache, for more cache hits, faster chain-tip response, etc.
4 years ago
catbref
20777363cf
Split AT state storage into two HSQLDB table for better management
...
This involves a database reshape, but before this happens the node-local
data is exported to local files, giving the user the option to use a
bootstrap file instead of waiting.
4 years ago
catbref
b3f859f290
Don't use WITH COLUMN NAMES when exporting data from repository into local file
4 years ago
catbref
8c9f68a9c3
Add API calls for exporting node-local repository data & corresponding import to/from local files
4 years ago