catbref
d4ac87f91d
Update to more efficient CIYAM AT v1.3.7
4 years ago
catbref
52f4008725
Bump version to v1.3.1
4 years ago
catbref
d8dd71ff50
Fix off-by-one in some sync cases
4 years ago
catbref
02966bf39a
Update CIYAM-AT to v1.3.6 to make use of lambda-based logging
4 years ago
catbref
a83d8bf1d5
Split Synchronizer into two strategies depending on whether swapping chains or simply adding new blocks
4 years ago
catbref
1e4432b1f3
Convert LOBs to VARBINARY in DB, reducing sizes at the same time
4 years ago
catbref
d50c979d9f
Tighten limit on AT sizes
4 years ago
catbref
4e60ec5192
Disable peer buffer dealloc for now to reduce GC pressure
4 years ago
catbref
31c4e3b1be
Reduce memory PoW during network handshake
4 years ago
catbref
b97fbd3171
Bug-fix for cached online accounts
4 years ago
catbref
43fb5d9332
Cache top 2 blocks' worth of online account data to avoid unnecessary Ed25519 verifications
4 years ago
catbref
ea3f1a8eff
Actually respond to peers requesting unknown block instead of letting them timeout on their side
4 years ago
catbref
7bb060781e
Bump to v1.3.0 - including new trade-portal feature
4 years ago
catbref
a1ab0b7c31
Added more nodes to initial list
4 years ago
catbref
fae2afd010
Remove obsolete github repo from potential auto-update sites
4 years ago
catbref
76c0a5a4fa
Increase default Bitcoin transaction fee to 5000 sats
4 years ago
catbref
cdb65657b6
Added qortal.ru nodes to initial nodes list used when creating DB
4 years ago
catbref
9007dfe779
Added API call POST /crosschain/btc/send for sending Bitcoin
4 years ago
catbref
99d09a9877
Change HTTP response codes for BTC_BALANCE_ISSUE and BTC_TOO_SOON from 422 to 402 & 408
4 years ago
catbref
afcf51399e
Minor post-merge fix-up
4 years ago
catbref
47679b7f6c
Merge branch 'trade-bot'
4 years ago
catbref
8f2985862d
Update BTC-ACCT 'cancel' API call to expect AT creator's as sender
4 years ago
catbref
23a524b464
BTC-ACCT: change AT so 'cancel' MESSAGE needs to come from AT creator's address (not trade address) so fee can be used instead of PoW for faster cancels
4 years ago
catbref
ce8992867d
Include last 24 hours of CANCELLED & REFUNDED trade offers in first message
4 years ago
catbref
c89de7adfb
Add creatorAddress, qortAmount and (last updated) timestamp to trade-bot entries
4 years ago
catbref
cac68ccc14
Added trade-bot websocket
4 years ago
catbref
d507383487
Rework ApiWebSocket so it can manage sessions and in readiness to conversion from "notifiers" to event-bus
4 years ago
catbref
ce5cf87094
Added unified, simple event bus to eventually replace controller "notifiers"
4 years ago
catbref
ec2c9d2a44
Improve /crosschain/tradebot/respond with varied API errors such as BTC_BALANCE_ISSUE, BTC_NETWORK_ISSUE, etc. instead of just "false"
4 years ago
catbref
36d0abe635
WIP: trade-bot: log warning when we can't fund P2SH-B for some reason
4 years ago
catbref
615381ca5a
Fix BTC spend txn building to be less aggressive about caching/checking spent keys
4 years ago
catbref
6b83499216
WIP: trade-bot: add support for showing trade partner's Qortal receiving address in trade offer summaries
4 years ago
catbref
faa2e9502b
WIP: trade-bot: include creation/latest timestamp (as appropriate) in trade offer summaries via websocket
4 years ago
catbref
cd07240ce7
Add BTC.getWalletBalance(xprv) and add API call to access that.
...
Also improved BTC.WalletAwareUTXOProvider to derive more keys itself
instead of throwing and relying on caller to do the work.
Added benefit of cleaning up caller code and being more efficient.
Needed because not all receiving/change addresses were being picked up.
4 years ago
catbref
91518464c2
WIP: trade-bot: fix empty bitcoin wallet edge case when finding UTXOs
4 years ago
catbref
25bf315e23
WIP: trade-bot: tradeoffers websocket initial message with OFFERING/REDEEMED and fixed subsequent messages
4 years ago
catbref
a8743b1bd3
ElectrumX network main-net servers
4 years ago
catbref
f90bd6ee45
WIP: trade-bot: added WS for streaming existing/new trades in OFFERING state
4 years ago
catbref
a351756883
WIP: trade-bot: add missing JavaTypeAdapter to TradeBotData.bitcoinAmount
...
Also: unify "receiveAddress" to "receivingAddress"
Fix missed changes from "recipient" to "partner" in BTCACCT, etc.
4 years ago
catbref
ea9b0d4588
WIP: trade-bot: initial API call for listing completed trades
...
Also: renamed trade bot field/column "receiving_public_key_hash"
to "receiving_account_info" as Alice's trade bot uses it to
store Alice's Qortal address, not PKH.
Added some extra simplistic repository calls to support above,
like BlockRepository.getTimestampFromHeight,
ATRepository.getCreatorPublicKey(atAddress)
4 years ago
catbref
e9c85c946e
WIP: trade-bot: two more unit tests to cover some edge cases
4 years ago
catbref
876bfb525b
WIP: trade-bot: more receive address support, some terminology clarification
...
Bitcoin receive address no longer stored in AT but dealt with by trade-bot.
This allows 'Bob' to have his BTC sent anywhere he likes when redeeming P2SH-A
thus saving a step, typically incurred by UI. DB shape change due to this.
Similarly, AT code has been updated to expect a Qortal receiving address when
Alice sends MESSAGE to redeem AT.
This means both trade-bot entries (Alice/Bob) can be safely wiped once trade completes.
Some terms were confusing like "trade recipient" which actually referred to
Alice and so have been unified as "trade partner" as to not be confused with
(say) "recipient address"
The MESSAGEs sent from Alice to Bob, from Bob to AT and from Alice to AT have been
given more useful names: 'offer', 'trade' and 'redeem'. There is also a cancel
MESSAGE sent from Bob to AT to cancel AT before trading occurs.
Some API calls have been renamed in light of above.
AT's 'mode' has been expanded from simply OFFER/TRADE to:
OFFERING, TRADING, REFUNDED, REDEEMED, CANCELLED
Tests updated, but MORE TESTING REQUIRED BEFORE RELEASE
4 years ago
catbref
6be67d0d92
WIP: trade-bot: make sure the "trade" private key is valid for both Curve25519 and secp256k1
4 years ago
catbref
16581766c6
WIP: trade-bot: detect and remove mempool entries from ElectrumX "listunspent" results
4 years ago
catbref
7fd7104f46
WIP: trade-bot: add flag to be set by AT if redeem happens so trade-bot detects redeem instead of refund
4 years ago
catbref
d2cae7c8b5
WIP: trade-bot: use correct Bob Bitcoin receive address in log entry
4 years ago
catbref
83955acd22
WIP: trade-bot: allow trade-bot entries to be deleted if in BOB_WAITING_FOR_AT_CONFIRM state. Also, return false (instead of throwing internal error) if trade-bot entry does not exist
4 years ago
catbref
d85b746021
WIP: trade-bot: add xprv validation method to BTC class and use that for API call /crosschain/tradebot/respond instead of vague byte-length check
4 years ago
catbref
e2dc91c1ea
Fix API call DELETE /crosschain/tradeoffer regarding PoW MESSAGE reference
4 years ago
catbref
098e2623d6
WIP: cross-chain AT now stores bitcoin receiving PKH
4 years ago