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

native: implement designate contract history retention #1519

Merged
merged 1 commit into from
Nov 6, 2020

Conversation

roman-khimov
Copy link
Member

Follow neo-project/neo#2007. Fix getDesignatedByRole price along the way.

@roman-khimov roman-khimov added this to the v0.92.0 milestone Nov 5, 2020
@roman-khimov
Copy link
Member Author

I think it could reuse Seek() from #1518 when it's landed.

@codecov
Copy link

codecov bot commented Nov 5, 2020

Codecov Report

Merging #1519 into master will increase coverage by 0.01%.
The diff coverage is 73.91%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1519      +/-   ##
==========================================
+ Coverage   77.46%   77.48%   +0.01%     
==========================================
  Files         229      229              
  Lines       17801    17843      +42     
==========================================
+ Hits        13790    13825      +35     
- Misses       3056     3058       +2     
- Partials      955      960       +5     
Impacted Files Coverage Δ
pkg/core/native/designate.go 76.37% <71.87%> (-0.74%) ⬇️
pkg/core/blockchain.go 73.60% <100.00%> (+0.23%) ⬆️
pkg/core/native/oracle.go 73.01% <100.00%> (+0.76%) ⬆️

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 7121686...9e781bf. Read the comment docs.

Comment on lines 67 to 72
emit.Int(w.BinWriter, int64(index))
emit.Int(w.BinWriter, int64(r))
emit.Int(w.BinWriter, 2)
emit.Opcodes(w.BinWriter, opcode.PACK)
emit.String(w.BinWriter, "getDesignatedByRole")
emit.AppCall(w.BinWriter, bc.contracts.Designate.Hash)
Copy link
Contributor

Choose a reason for hiding this comment

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

emit.AppCallWIthOperationAndArgs ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I had this thought. Fixed.

Follow neo-project/neo#2007. Fix getDesignatedByRole price along the way.
@roman-khimov roman-khimov merged commit 0ee3777 into master Nov 6, 2020
@roman-khimov roman-khimov deleted the designate-role-history branch November 6, 2020 12:35
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

3 participants