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

Add System.Runtime.GetRandom #2066

Merged
merged 5 commits into from
Jul 15, 2021
Merged

Add System.Runtime.GetRandom #2066

merged 5 commits into from
Jul 15, 2021

Conversation

fyrchik
Copy link
Contributor

@fyrchik fyrchik commented Jul 14, 2021

Close #2062 .

Need to wait until neo-project/neo#2541 resolves.
Testing:

  1. make env_up works and accepts blocks.
  2. test bench in mixed setup.

@codecov
Copy link

codecov bot commented Jul 14, 2021

Codecov Report

Merging #2066 (9307dbf) into master (2b7abd2) will increase coverage by 0.08%.
The diff coverage is 91.11%.

❗ Current head 9307dbf differs from pull request most recent head 85ce207. Consider uploading reports for the commit 85ce207 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2066      +/-   ##
==========================================
+ Coverage   84.19%   84.28%   +0.08%     
==========================================
  Files         287      287              
  Lines       26798    26841      +43     
==========================================
+ Hits        22562    22622      +60     
+ Misses       3012     2991      -21     
- Partials     1224     1228       +4     
Impacted Files Coverage Δ
pkg/consensus/consensus.go 72.58% <75.00%> (+0.05%) ⬆️
pkg/core/block/header.go 82.22% <77.77%> (-0.50%) ⬇️
pkg/consensus/prepare_request.go 81.25% <100.00%> (+1.25%) ⬆️
pkg/core/blockchain.go 81.11% <100.00%> (+0.01%) ⬆️
pkg/core/interop/context.go 93.96% <100.00%> (+0.38%) ⬆️
pkg/core/interop/runtime/util.go 100.00% <100.00%> (ø)
pkg/core/native/ledger.go 93.96% <100.00%> (+0.05%) ⬆️
pkg/core/util.go 74.46% <100.00%> (+0.55%) ⬆️
pkg/encoding/bigint/bigint.go 93.82% <100.00%> (+0.23%) ⬆️
pkg/network/server.go 73.10% <0.00%> (+0.12%) ⬆️
... and 3 more

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 2b7abd2...85ce207. Read the comment docs.

pkg/core/block/header.go Outdated Show resolved Hide resolved
pkg/core/interop/runtime/util.go Show resolved Hide resolved
pkg/consensus/consensus.go Outdated Show resolved Hide resolved
pkg/core/block/header.go Outdated Show resolved Hide resolved
pkg/interop/runtime/runtime.go Outdated Show resolved Hide resolved
pkg/interop/runtime/runtime.go Show resolved Hide resolved
pkg/consensus/consensus.go Outdated Show resolved Hide resolved
fyrchik added 5 commits July 15, 2021 15:58
Signed-off-by: Evgeniy Stratonikov <[email protected]>
Signed-off-by: Evgeniy Stratonikov <[email protected]>
Our murmur3 implementation is architecture independent and optimized in
assembly.

Signed-off-by: Evgeniy Stratonikov <[email protected]>
Signed-off-by: Evgeniy Stratonikov <[email protected]>
@roman-khimov
Copy link
Member

roman-khimov commented Jul 15, 2021

So have you tested it in mixed consensus setup?

@fyrchik
Copy link
Contributor Author

fyrchik commented Jul 15, 2021

@roman-khimov yes, works as expected https://github.com/nspcc-dev/neo-bench/tree/rc3-update, will make a PR in bench after merge.

@roman-khimov roman-khimov merged commit 05cb658 into master Jul 15, 2021
@roman-khimov roman-khimov deleted the block-nonce branch July 15, 2021 16:02
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.

Add nonce to block header and GetRandom() interop
4 participants