Skip to content

Commit

Permalink
protocol version update
Browse files Browse the repository at this point in the history
  • Loading branch information
lexfrl committed Jun 10, 2020
1 parent b6367b5 commit 344820b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/primitives/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ pub const DB_VERSION: DbVersion = 1;
pub type ProtocolVersion = u32;

/// Current latest version of the protocol.
pub const PROTOCOL_VERSION: ProtocolVersion = 22;
pub const PROTOCOL_VERSION: ProtocolVersion = 23;

pub const FIRST_BACKWARD_COMPATIBLE_PROTOCOL_VERSION: ProtocolVersion = PROTOCOL_VERSION;
2 changes: 1 addition & 1 deletion neard/res/genesis_config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"protocol_version": 22,
"protocol_version": 23,
"genesis_time": "1970-01-01T00:00:00.000000000Z",
"chain_id": "sample",
"genesis_height": 0,
Expand Down
19 changes: 19 additions & 0 deletions scripts/migrations/23-delete_action_last.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""
Refund allowance in the access key for unused gas fees.
"""

import sys
import os
import json
from collections import OrderedDict

home = sys.argv[1]
output_home = sys.argv[2]

config = json.load(open(os.path.join(home, 'output.json')), object_pairs_hook=OrderedDict)

assert config['protocol_version'] == 22

config['protocol_version'] = 23

json.dump(config, open(os.path.join(output_home, 'output.json'), 'w'), indent=2)

0 comments on commit 344820b

Please sign in to comment.