Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added version information to peers storage. #532

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

nickeskov
Copy link
Member

No description provided.

@nickeskov nickeskov force-pushed the feature-peers-storage-version branch from 83614cc to 0c9ebba Compare August 19, 2021 13:17
@nickeskov nickeskov self-assigned this Aug 19, 2021
@nickeskov nickeskov merged commit 86b30fc into master Aug 19, 2021
@nickeskov nickeskov deleted the feature-peers-storage-version branch August 19, 2021 14:36
nickeskov added a commit that referenced this pull request Nov 10, 2021
* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: Alexandr Dolgavin <[email protected]>
Co-authored-by: Lindsey Gray <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add version information to peers storage and remove it on old version detection
2 participants