-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make kaspawallet store the utxos sorted by amount (#1924)
* Make kaspawallet store the utxos sorted by amount, so that the bigger utxos are spent first - making it less likely a compound will be required * Start refactor addEntryToUTXOSet * Add GetUTXOsByBalances command to rpc * Store list of addresses, updated with the collectAddresses methods (replacing collectUTXOs methods) * Fix wrong commands in GetBalanceByAddress * Rename: refreshExistingUTXOs -> refreshUTXOs * Display progress of IBD process in Kaspad logs (#1938) * Report progress percentage when downloading headers in IBD. * Extract reporting logic to a separate type. * Report progress for IBD missing block bodies. * Split ApplyPruningPointProof to multiple small database transactions (#1937) * Split ApplyPruningPointProof to multiple small database transactions. * Increase the timeout duration in TestIBDWithPruning. * Increase the timeout duration in simple-sync. * Explain that if ApplyPruningPointProof fails, the database must be discarded. * Increase headers proof timeout and add more progress logs (#1939) * Increase timeout for pruning proof and add some logs * Show resolving virtual progress as whole percents * Add AllowConnectionToDifferentVersions flag to kaspactl (#1940) * Remove duplicate median time calculation on tx validation (#1943) Co-authored-by: stasatdaglabs <[email protected]> * Drop support for p2p v3 (#1942) * Drop support for p2p v3 * Remove redundant aliases * Remove redundant condition * In profile dump file - use a time format supporting all file systems (#1945) * Use a time format without ":" to support all file systems * go fmt * Bump version to v0.11.12 (#1941) Co-authored-by: stasatdaglabs <[email protected]> Co-authored-by: stasatdaglabs <[email protected]> Co-authored-by: Ori Newman <[email protected]> Co-authored-by: Michael Sutton <[email protected]>
- Loading branch information
1 parent
4a560f2
commit 16336b0
Showing
66 changed files
with
1,079 additions
and
2,725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package appmessage | ||
|
||
// GetBalancesByAddressesRequestMessage is an appmessage corresponding to | ||
// its respective RPC message | ||
type GetBalancesByAddressesRequestMessage struct { | ||
baseMessage | ||
Addresses []string | ||
} | ||
|
||
// Command returns the protocol command string for the message | ||
func (msg *GetBalancesByAddressesRequestMessage) Command() MessageCommand { | ||
return CmdGetBalancesByAddressesRequestMessage | ||
} | ||
|
||
// NewGetBalancesByAddressesRequest returns a instance of the message | ||
func NewGetBalancesByAddressesRequest(addresses []string) *GetBalancesByAddressesRequestMessage { | ||
return &GetBalancesByAddressesRequestMessage{ | ||
Addresses: addresses, | ||
} | ||
} | ||
|
||
// BalancesByAddressesEntry represents the balance of some address | ||
type BalancesByAddressesEntry struct { | ||
Address string | ||
Balance uint64 | ||
} | ||
|
||
// GetBalancesByAddressesResponseMessage is an appmessage corresponding to | ||
// its respective RPC message | ||
type GetBalancesByAddressesResponseMessage struct { | ||
baseMessage | ||
Entries []*BalancesByAddressesEntry | ||
|
||
Error *RPCError | ||
} | ||
|
||
// Command returns the protocol command string for the message | ||
func (msg *GetBalancesByAddressesResponseMessage) Command() MessageCommand { | ||
return CmdGetBalancesByAddressesResponseMessage | ||
} | ||
|
||
// NewGetBalancesByAddressesResponse returns an instance of the message | ||
func NewGetBalancesByAddressesResponse(entries []*BalancesByAddressesEntry) *GetBalancesByAddressesResponseMessage { | ||
return &GetBalancesByAddressesResponseMessage{ | ||
Entries: entries, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
86 changes: 0 additions & 86 deletions
86
app/protocol/flows/v3/blockrelay/handle_ibd_block_locator.go
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
app/protocol/flows/v3/blockrelay/handle_ibd_block_requests.go
This file was deleted.
Oops, something went wrong.
95 changes: 0 additions & 95 deletions
95
app/protocol/flows/v3/blockrelay/handle_pruning_point_and_its_anticone_requests.go
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
app/protocol/flows/v3/blockrelay/handle_pruning_point_proof_requests.go
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.