-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
State intefaces refactoring and state keys reduction (#561)
* Address structure renamed to WavesAddress. New interface Address introduced. New type AddressID added and used to identify Address in state. * Keys of assets' data in state reduced to 20 bytes. * Tail of asset ID digest is stored in state and full AssetID digest is reconstructed on retrieval by functions that get AssetInfo * Added switch between types of functions (#528) * Function IsDataStorageUntouched returns false in case of no data were stored for given account. XXHash lib updated. (#530) * Limit new outbound connections (#512) * Module goleveldb updated to latest master. * Remote address added to log message in receive function. * Simplification of file descriptors options. Last attempt timestamp stored for known peers and used to sort them while establishing new connection. * Fixed max FDs limits for macOS * Log messages level changed * Fixed not returning bytes to pool after network message header reading. * MassTransfer V3 enabled * Improved warning message on failure to resend message to FSM. Cancel peer's context before closing network connection handler. * Peer's channels capacities reduced by 3 times and FSM channels capacities reduced by 10. * Channels capacity adjusted. Warnings on message drops converted to debug messages. * Function SetMaxFDs renamed to RaiseMaxFDs * Network bytes channels capacity increased * Homegrown bytespool replaced with bytebufferpool package. * Separate bytepool removed, the global one is used everywhere. * Added version information to peers storage. (#532) * Two small patches to let gowaves build on 32 bit systems (#533) (#536) * specify uint64 for constants * tag uint32s for 32 bit builds * camelCase for variables Co-authored-by: Lindsey Gray <lindsey.gray@gmail.com> * Updated CI build job. Added 32bit and 64bit architectures. (#535) * Added a change of balance for reissue and burn actions (#541) * Decimal library updated. Test on error in pow function then x was 0.5 added. (#542) Go 1.17 derictives supported. * Turned off payments validation (#539) * Turned off payments validation * Settings for temporary disabling payments validaion added. Recipient alias resolution fixed. * Fixed reissue * Tests on issue, burn and reissue in invoke added. Test on using aliases whlie doing invokes added. Test on activation of internal transfers and payments added. * Error messages fixed Co-authored-by: Alexey Kiselev <alexey.kiselev@gmail.com> * Signature of function AssetInfoByID improved by returning errs.UnknownAsset error for non-existent asset. * New version of limit for total size of data entries produced by script invocation added. (#543) * Fixed bug in 'bytes' method of 'assetScriptKey' structure. Incremented 'StateVersion' constant. * Fixed bug with 'accountScriptHash' calculation. * Fixed bug with 'accountsDataStorage' on TestNet height 1638728, transaction 'BWqhPWQfa2u7bZ8SsB6P9MvKDNmFgkjBude2RbeusAa4'. * Changed state internal methods. Now this methods accept 'crypto.Digest' instead of '[]bytes' when asset needs. * Changed 'NFTList' method in 'StateInfo' interface. Also changed 'NewestAccountBalance' method in 'SmartState' interface. * Changed 'AccountBalance' method in 'StateInfo' and 'State' interfaces. * Fixed bug in 'extractAsset' function. * WIP: crypto.Digest to proto.AssetID. * Changed 'StateInfo' and 'SmartState' interfaces. Now 'AccountBalance' and 'NewestAccountBalance' can be retrieved by '*proto.AssetID'. * Removed 'crypto.Digest' from general purpose state interfaces. * Deleted 'String' method of 'AssetID'. * Reverted changes for 'SmartState' interface. * Removed 'proto.WavesAddress' usage as state key. Now keys uses 'proto.AddressID'. * Changed 'byteKey' function signature. * Incremented 'StateVersion' constant. * Issues fixed. PR #548. * Changed 'byteKey' utility function in 'state' package. Co-authored-by: Alexey Kiselev <alexey.kiselev@gmail.com> Co-authored-by: Alexandr Dolgavin <41806871+esuwu@users.noreply.github.com> Co-authored-by: Lindsey Gray <lindsey.gray@gmail.com>
- Loading branch information
1 parent
9997601
commit df751bc
Showing
96 changed files
with
2,061 additions
and
1,969 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
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
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
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
Oops, something went wrong.