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

Re-do rent collection check on rent-exempt account (bp #11349) #11654

Merged
merged 3 commits into from
Aug 17, 2020

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 17, 2020

This is an automated backport of pull request #11349 done by Mergify

Cherry-pick of 23fa84b has failed:

On branch mergify/bp/v1.2/pr-11349
Your branch is up to date with 'origin/v1.2'.

You are currently cherry-picking commit 23fa84b32.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:

	modified:   core/src/rpc_pubsub.rs
	modified:   docs/src/implemented-proposals/rent.md
	modified:   programs/bpf/c/src/invoked/invoked.c
	modified:   programs/bpf/rust/invoked/src/lib.rs
	modified:   runtime/src/accounts.rs
	modified:   runtime/src/rent_collector.rs

Unmerged paths:
  (use "git add <file>..." to mark resolution)

	both modified:   core/src/rpc_subscriptions.rs
	both modified:   core/tests/bank_forks.rs
	both modified:   runtime/src/bank.rs

To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the simulator.

Finally, you can contact us on https://mergify.io/

* wip: re-do rent collection check on rent-exempt account

* Let's see how the ci goes

* Restore previous code

* Well, almost all new changes are revertable

* Update doc

* Add test and gating

* Fix tests

* Fix tests, especially avoid to change abi...

* Fix more tests...

* Fix snapshot restore

* Align to _new_ with better uninitialized detection

(cherry picked from commit 23fa84b)

# Conflicts:
#	core/src/rpc_subscriptions.rs
#	core/tests/bank_forks.rs
#	runtime/src/bank.rs
@mergify mergify bot added conflicts automerge Merge this Pull Request automatically once CI passes and removed automerge Merge this Pull Request automatically once CI passes labels Aug 17, 2020
@mergify
Copy link
Contributor Author

mergify bot commented Aug 17, 2020

automerge label removed due to a CI failure

@mergify mergify bot added the automerge Merge this Pull Request automatically once CI passes label Aug 17, 2020
@@ -146,7 +145,7 @@ mod tests {
&CompressionType::Bzip2,
),
CompressionType::Bzip2,
&GenesisConfig::default(),
old_genesis_config,
Copy link
Member

Choose a reason for hiding this comment

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

This spent some time for me to figure out why the test has started to failing.....

@@ -506,143 +506,6 @@ impl Bank {
new
}

<<<<<<< HEAD
Copy link
Member

Choose a reason for hiding this comment

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

v1.2 doesn't have #10581....

@@ -122,6 +120,7 @@ mod tests {
fn restore_from_snapshot(
old_bank_forks: &BankForks,
old_last_slot: Slot,
old_genesis_config: &GenesisConfig,
Copy link
Member

Choose a reason for hiding this comment

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

This is extracted from #10581

@codecov
Copy link

codecov bot commented Aug 17, 2020

Codecov Report

Merging #11654 into v1.2 will decrease coverage by 0.0%.
The diff coverage is 74.0%.

@@           Coverage Diff            @@
##            v1.2   #11654     +/-   ##
========================================
- Coverage   81.9%    81.9%   -0.1%     
========================================
  Files        320      320             
  Lines      76427    76471     +44     
========================================
+ Hits       62651    62682     +31     
- Misses     13776    13789     +13     

@mergify mergify bot merged commit e2626da into v1.2 Aug 17, 2020
@mergify mergify bot deleted the mergify/bp/v1.2/pr-11349 branch August 17, 2020 11:15
@ryoqun ryoqun removed the conflicts label Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant