-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix NEO callstates #3599
Merged
Merged
Fix NEO callstates #3599
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4a1f660
Allow callstates to use HF
shargon 6f31b4e
Rename to method
shargon a60bdac
Other rename
shargon 6fa19aa
Change the way
shargon 66804dd
Reduce changes
shargon 4bced57
Reduce changes
shargon 2d760c1
Adapt name always
shargon 4eb75bc
Avoid string when only is lower the first char
shargon a989f9c
UT
shargon f860146
Test all
shargon 68f3fdd
Update src/Neo/ProtocolSettings.cs
shargon 9bebffe
Update src/Neo/ProtocolSettings.cs
shargon 2dd5e29
Reuse Load from stream
shargon 6c7c89a
Unify
shargon c6db216
Fix default logic
shargon dad7e0d
Change ContractMethod to allowMultiple
shargon ca9ddad
Use LowerInvariant
shargon 753b66b
Move CheckingHardfork
shargon 21444f0
Remove optional arg
shargon 01ef226
Fix build
shargon 9432a2a
Avoid file not found error
shargon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ConfigurationBuilder
on build usesConfigurationRoot
may have to cast to it. either way needs to be fixed for memory leak.or could do
((IDisposable)config).Dispose();
at of the methodhttps://github.com/dotnet/runtime/blob/9d5a6a9aa463d6d10b0b0ba6d5982cc82f363dc3/src/libraries/Microsoft.Extensions.Configuration/src/ConfigurationBuilder.cs#L53C24-L53C41
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was not a memory leak...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ConfiguationRoot
is the class that is created for inherits fromIConfigurationRoot
How isn't it a memory leak, The memory for the providers are still allocated? Streams and all.
https://github.com/dotnet/runtime/blob/9d5a6a9aa463d6d10b0b0ba6d5982cc82f363dc3/src/libraries/Microsoft.Extensions.Configuration/src/ConfigurationRoot.cs#L99C9-L112C10
Just do
(config as IDisposable)?.Dispose()
what's the big deal?