Added smart contract upgrade support. (#250)

Supports smart contract self-upgrades by allowing "post_exec.sh" script to be executed after consensus contract execution.
This commit is contained in:
Ravin Perera
2021-02-18 17:25:42 +05:30
committed by GitHub
parent 7059f68f11
commit 8eac87fb85
6 changed files with 107 additions and 31 deletions

View File

@@ -16,6 +16,7 @@ const clientProtocols = {
Object.freeze(clientProtocols);
const PATCH_CONFIG_PATH = "../patch.cfg";
const POST_EXEC_SCRIPT_NAME = "post_exec.sh";
class HotPocketContract {
@@ -399,5 +400,6 @@ const errHandler = (err) => console.log(err);
module.exports = {
Contract: HotPocketContract,
clientProtocols
clientProtocols,
POST_EXEC_SCRIPT_NAME,
}