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

return when writing under protected key #3520

Merged
merged 2 commits into from
Oct 19, 2021

Conversation

sasurobert
Copy link
Contributor

@sasurobert sasurobert commented Oct 19, 2021

Added return if error when writing under protected key

iulianpascalau
iulianpascalau previously approved these changes Oct 19, 2021
@@ -225,6 +227,7 @@ func NewSmartContractProcessor(args ArgsNewSmartContractProcessor) (*scProcessor
incrementSCRNonceInMultiTransferEnableEpoch: args.EnableEpochs.IncrementSCRNonceInMultiTransferEnableEpoch,
createdCallBackCrossShardOnlyEnableEpoch: args.EnableEpochs.MultiESDTTransferFixOnCallBackOnEnableEpoch,
optimizeGasUsedInCrossMiniBlocksEnableEpoch: args.EnableEpochs.OptimizeGasUsedInCrossMiniBlocksEnableEpoch,
saveKeyValueUnderProtectedErrorEnableEpoch: args.EnableEpochs.RemoveNonUpdatedStorageEnableEpoch,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be used flag RemoveNonUpdatedStorageEnableEpoch for saveKeyValueUnderProtectedErrorEnableEpoch ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed, it is wise to use them together. By using 2 different flags with different values we might get into some problems -> correctly executed transactions might get rejected.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@codecov
Copy link

codecov bot commented Oct 19, 2021

Codecov Report

Merging #3520 (f453303) into master (9d45c18) will decrease coverage by 0.00%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3520      +/-   ##
==========================================
- Coverage   73.88%   73.88%   -0.01%     
==========================================
  Files         582      582              
  Lines       74579    74585       +6     
==========================================
+ Hits        55105    55109       +4     
- Misses      15071    15073       +2     
  Partials     4403     4403              
Impacted Files Coverage Δ
process/smartContract/process.go 66.93% <66.66%> (-0.01%) ⬇️
p2p/libp2p/netMessenger.go 74.72% <0.00%> (-0.28%) ⬇️
process/block/baseProcess.go 68.71% <0.00%> (+0.25%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d45c18...f453303. Read the comment docs.

Copy link
Collaborator

@gabi-vuls gabi-vuls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System test passed.
image

@iulianpascalau iulianpascalau merged commit 1e3bc06 into master Oct 19, 2021
@iulianpascalau iulianpascalau deleted the scError-on-save-protected branch October 19, 2021 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants