Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Powerup rename #536

Merged
merged 7 commits into from
Dec 8, 2020
Merged

Powerup rename #536

merged 7 commits into from
Dec 8, 2020

Conversation

deckb
Copy link
Contributor

@deckb deckb commented Nov 30, 2020

Change Description

This is a renaming of rentbw to powerup per the request of the PBE team. These changes are mostly cosmetic renaming of tables and actions. There is also a commit of a new configuration and usage guide.

Deployment Changes

  • [ X] Deployment Changes

This adds an abi that would need to be deployed to eosio.reserv for a no-op action to notify the account of the NET and CPU weight reserved by the account and the associated fee

API Changes

  • API Changes

Documentation Additions

  • [ X] Documentation Additions

There was the addition of a configuration and usage guide docs/04_guides/08_configure-use-powerup-resource-model.md

@deckb deckb requested review from tbfleming, arhag and b1bart November 30, 2020 18:35
@@ -610,21 +610,21 @@ namespace eosiosystem {
time_point_sec utilization_timestamp = {}; // When adjusted_utilization was last updated
};

struct [[eosio::table("rent.state"),eosio::contract("eosio.system")]] rentbw_state {
static constexpr uint32_t default_rent_days = 30; // 30 day resource rentals
struct [[eosio::table("powup.state"),eosio::contract("eosio.system")]] powerup_state {
Copy link
Contributor

Choose a reason for hiding this comment

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

Renaming tables will break testnets which deployed rentbw

Copy link
Contributor

Choose a reason for hiding this comment

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

The new powup.state table will be inconsistent with the other resource-related tables and the weights already assigned to existing accounts which have outstanding rents.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there an option to deploy a modified rentbw-1.9 contract that disables renting and wait for orders to all expire and then deploy the changed contract? It is not ideal but I believe that would work to migrate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Never mind that would effectively stop all traffic on the network for 30 days.

Copy link
Contributor

Choose a reason for hiding this comment

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

The tests could run a patched version which renames the tables back, but that would create a noticeable difference to tooling which runs on both test nets and non-test nets.

Copy link
Contributor

Choose a reason for hiding this comment

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

A modified rentbw-1.9 could disable new rentals and allow rentbwexec to expire existing rentals prematurely. An account with unlimited cpu & net would have to manage this. All normal accounts would be unusable because of eosio.reserv until powerup-1.9 is installed and activated.

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, the modified version needs to clear out the eosio.reserv allocation or powerup-1.9 will malfunction.

@tbfleming
Copy link
Contributor

Some references to the word "rent" remain in the powerup system:

  • Fee needed to rent the entire resource market weight
  • Rental fees below this amount are rejected
  • Exponent of 2.0 means that the price to rent a
  • assuming no further renting
  • It is added as an inline convenience action to power rental
  • rental fee amount
  • try renting more

deck added 3 commits December 1, 2020 09:11
…nor typos and comment blocks. Change `process_queue` to a more definitive `process_powerup_queue`.
@deckb
Copy link
Contributor Author

deckb commented Dec 2, 2020

I pulled some sections (and updated them) from the previous RC release notes for some additional information.

@deckb deckb merged commit 9660a5c into powerup-1.9 Dec 8, 2020
@deckb deckb deleted the powerup-rename branch December 8, 2020 12:49
@deckb deckb mentioned this pull request Jan 21, 2021
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants