Ori Newman
707b3a159e
On estimateFee always assume that the recipient has ECDSA address
2024-09-18 14:43:57 +03:00
Ori Newman
decbcd8233
Estimate fee correctly for --send-all
2024-09-18 13:57:44 +03:00
Ori Newman
2d25c3d7a3
Fix estimateFee change value
2024-09-18 13:45:32 +03:00
Ori Newman
af93d5fdfe
Add failed broadcast transactions on send error`
2024-09-18 08:15:08 +03:00
Ori Newman
89c932dec1
Add checkTransactionFeeRate
2024-09-18 08:04:10 +03:00
Ori Newman
484c17ebb1
Add validations to CLI flags
2024-09-16 13:35:45 +03:00
Ori Newman
8e8f7c9b32
Fix calculateFeeLimits nil handling
2024-09-16 09:42:19 +03:00
Michael Sutton
2b1d3a1a04
put min feerate check in the correct location
2024-09-16 00:51:29 +03:00
Michael Sutton
0bc526781a
fix description: maximum -> minimum
2024-09-16 00:50:58 +03:00
Ori Newman
9e659b2a4d
Some fixes
2024-09-15 17:55:24 +03:00
Michael Sutton
bb8af5d5ad
fmt
2024-09-15 12:33:54 +03:00
Michael Sutton
d7a7902368
increase minChangeTarget to 10kas
2024-09-15 12:30:48 +03:00
Michael Sutton
c0415eaaec
apply max fee constrains
2024-09-15 12:15:22 +03:00
Michael Sutton
0beb9edf12
Rename to FeePolicy and add MaxFee option + todo
2024-09-15 11:37:43 +03:00
Ori Newman
8153ec79d0
BroadcastRBF -> BroadcastReplacement
2024-09-13 13:49:13 +03:00
Michael Sutton
4bb06f5242
Fix test
2024-09-13 13:17:46 +03:00
Michael Sutton
21b515b454
Minor typos
2024-09-13 12:58:53 +03:00
Ori Newman
fedbb3bd0f
Some fixes
2024-09-12 14:19:13 +03:00
Ori Newman
30fcd217ed
Use CalculateTransactionOverallMass where needed
2024-09-11 16:40:23 +03:00
Ori Newman
238597104f
Fix bump_fee UTXO lookup and fix wrong change address
2024-09-11 14:31:28 +03:00
Ori Newman
6901e7d538
Add RBF support to wallet
2024-09-05 13:50:21 +03:00
Ori Newman
fc7c5a2a7e
Update go version
2024-09-04 15:56:46 +03:00
Ori Newman
70bcc31051
Add fee rate to kaspawallet parse
2024-09-04 15:15:36 +03:00
Ori Newman
78ca616b1f
Add fee estimation to wallet
2024-09-04 14:54:03 +03:00
Michael Sutton
86b89065cf
KIP9 basic wallet compatibility ( #2276 )
...
* introduce min change target
* clarify wallet help messages for from-address and send-all
2024-05-09 18:53:21 +03:00
Michael Sutton
6b38bf7069
RPC SubmitTransaction: Dequeue old responses from previous requests ( #2262 )
2024-01-05 14:58:19 +02:00
Ori Newman
d2453f8e7b
Lazy wallet utxo sync after broadcasting a tx ( #2258 )
...
* Lazy wallet utxo sync after broadcasting a tx
* Make a more granular lock for refreshUTXOs
* Don't push to forceSyncChan if it has an element
* Better policy for used outpoints and wait for first sync when creating an unsigned tx
* fix expire condition
* lock address reading
* fix small memory leak
* add an rpc client dedicated for background ops
* rename to follow conventions
* one more rename
* Compare wallet addresses by value
* small fixes
* Add comment
---------
Co-authored-by: Michael Sutton <msutton@cs.huji.ac.il>
2023-12-27 18:10:16 +02:00
Ori Newman
629faa8436
Add options to see wallet and wallet daemon versions ( #2257 )
2023-12-26 16:00:44 +02:00
Michael Sutton
0819244ba1
if the tx has change and thus so 2 outputs, try having at least 2 inputs as well (in order to not be slowed down by dust patch) ( #2254 )
2023-12-25 09:19:04 +02:00
Ori Newman
a0149cd8d0
Broadcast wallet transactions in chunks ( #2253 )
2023-12-13 16:15:25 +02:00
Michael Sutton
8e71f79f98
use rpc to identify testnet 11 ( #2211 )
...
Co-authored-by: Ori Newman <orinewman1@gmail.com>
2023-12-12 12:16:35 +02:00
coderofstuff
387fade044
Fix off by small amounts in sent amount kaspa ( #2220 )
...
* Fix off by small amounts in sent amount kaspa
Floating point math causes inconsistencies when converting kas to sompi.
Use a method that parses the amount as a string, the converts it to
sompi then parse back to uint64
* Deal with SendAmount as strings all the way
* Consistent config handling
* Set variables directly from utils.KasToSompi
Use = instead of := to ensure no shadowing
* Fix validate amount regex
* Use decimal places as defined by constants
Also check if SompiPerKaspa is multiple of 10
* Minor updates for context clarity
2023-09-23 11:28:38 +03:00
Ori Newman
7be3f41aa7
Avoid sending transactions with no funds ( #2193 )
2023-03-06 12:20:42 +02:00
Ori Newman
8aee8f81c5
Add Dockerfile to kaspawallet ( #2187 )
2023-02-27 13:11:52 +02:00
Svarog
ec3441e63f
Add --send-all to kaspawallet send command ( #2181 )
...
* Allow to send --all
* Fix a typo
---------
Co-authored-by: Ori Newman <orinewman1@gmail.com>
2023-02-27 12:39:01 +02:00
Ori Newman
27fdbd9c88
Upgrade to go 1.19 ( #2191 )
...
* Upgrade to go 1.19
* fmt
2023-02-27 10:03:11 +02:00
Ori Newman
09d698dd0e
Add note about change addresses to 'show-addresses' ( #2170 )
...
* Add note about change addresses to 'show-addresses'
* Use stdout
2022-11-20 12:12:09 +02:00
Ori Newman
ec51c6926a
Use one of the From addresses as a change address ( #2164 )
...
* Use one of the From addresses as a change address
* Use change address from fromAddress only if useExisting is set to true
* Change FromAddresses description
2022-11-17 15:31:18 +02:00
Ori Newman
7d44275eb1
Add found to GetBlock ( #2165 )
2022-11-16 23:48:05 +02:00
Ori Newman
2d54c9693b
Create directory before locking lock file ( #2160 )
2022-10-24 00:41:59 +03:00
Ori Newman
3a3fa0d3f0
Add lock file to kaspawallet ( #2154 )
...
* Add lock file to kaspawallet
* Add a possible explanation to password error
Co-authored-by: msutton <mikisiton2@gmail.com>
2022-10-02 23:42:14 +03:00
Ori Newman
cf4073b773
Remove HF activation code ( #2152 )
...
* Remove HF activation code
* Remove unused var totalInputs
2022-10-02 19:17:33 +03:00
Ori Newman
7e9b5b9010
Security Patch + HF ( #2142 )
...
* HF
* Fix lint
2022-09-21 18:58:32 +03:00
Ori Newman
23764e1b0b
Optionally show serialized transactions on send ( #2135 )
...
* Optionally show serialized transactions on send
* Explain more about serialized transactions
* Increase grpc server send message size
2022-09-09 15:51:20 +03:00
Svarog
2a7e03e232
Kaspawallet.send(): Make separate context for Broadcast, to prolong timeout ( #2131 )
...
* Kaspawallet.send(): Make separate context for Broadcast, to prolong timeout
* Amend comment
Co-authored-by: Michael Sutton <mikisiton2@gmail.com>
2022-08-28 13:17:58 +03:00
Ori Newman
aabbc741d7
Add UseExistingChangeAddress option to the wallet ( #2127 )
2022-08-21 17:12:05 +03:00
Aleoami
7a61c637b0
Add RPC timeout parameter to wallet daemon ( #2104 )
...
Co-authored-by: Ori Newman <orinewman1@gmail.com>
2022-07-21 13:55:12 +03:00
Svarog
b26b9f6c4b
Implement multi-layer auto-compound ( #2115 )
...
Co-authored-by: Michael Sutton <mikisiton2@gmail.com>
2022-07-15 14:12:34 +03:00
D-Stacks
74a4f927e9
RPC: include orphans into mempool entries ( #2046 )
...
* RPC: include orphans into mempool entries
* no need for + 1
* give request option to choose mempool pool(s)
* add to wallet, fix bg
* use orphanpool rpc to test for orphans
* fix fmt
* fix crash when quering orphan pool in get_mempool_entries
* pass the tests, fix fromAppMessage bug
* Update config_test.go
don't think this is needed
* needed for tests to pass
* inverse to transactionpoolfilter, cut down code to two ifs.
* fmt
* update test to true false, forgot one includetransactionpool renaming
* update and simplyfiy get_mempool_entry handler
* comment outdated
* i think we usually use make instead of var.
* Fix some leftovers of includeTransactionPool
Co-authored-by: Ori Newman <orinewman1@gmail.com>
2022-06-15 23:46:44 +03:00
Aleoami
c87e541570
Clarify wallet message concerning a wallet daemon sync state ( #2045 )
...
* upd clarified wallet daemon syncronization state log message
* Update address.go
* Update create_unsigned_transaction.go
* Update external_spendable_utxos.go
* Update sync.go
Co-authored-by: Michael Sutton <mikisiton2@gmail.com>
2022-06-15 16:05:01 +03:00