Skip to contents

Creates a new upgrade proposal to change blockchain parameters (e.g., target block time, maximum block size). Upgrades require admin approval.

Usage

mc_create_upgrade(conn, name, params)

Arguments

conn

A connection object created by mc_connect.

name

Character string. Name of the upgrade (must be unique).

params

List of parameters to upgrade, e.g., list("target-block-time" = 20, "max-block-size" = 10000000).

Value

A list containing the result of the RPC call (usually transaction ID).

Examples

if (FALSE) { # \dontrun{
mc_create_upgrade(conn, "speedup", list("target-block-time" = 20))
} # }