From a3090d2f604b64dd579ff873f151ba7a80b717cd Mon Sep 17 00:00:00 2001 From: nk_ysg Date: Fri, 10 Feb 2023 12:32:53 +0800 Subject: [PATCH 1/2] reset halley genesis --- config/src/genesis_config.rs | 2 +- genesis/generated/halley/genesis | Bin 87805 -> 87805 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/config/src/genesis_config.rs b/config/src/genesis_config.rs index 08ad5d1153..6f47b903f5 100644 --- a/config/src/genesis_config.rs +++ b/config/src/genesis_config.rs @@ -827,7 +827,7 @@ pub static G_HALLEY_CONFIG: Lazy = Lazy::new(|| { GenesisConfig { genesis_block_parameter: GenesisBlockParameterConfig::Static(GenesisBlockParameter { parent_hash: HashValue::sha3_256_of(b"starcoin_halley"), - timestamp: 1645603667000, + timestamp: 1676002743000, difficulty: 100.into(), }), version: Version { major: 1 }, diff --git a/genesis/generated/halley/genesis b/genesis/generated/halley/genesis index a71478d010f1f7713f8e78c520700e23cc26c6ca..f909f4b3ff45b4c29b6c3592e71b97cc5589abb8 100644 GIT binary patch delta 214 zcmV;{04e|dtp)w91&|>I*iwu+h5?bW86yDzAbuX<`}K}Y)|BoW%b6?SRe^Jt2h>o2 zya1MYsR&b|r;%eKAIS!_(CPcT9Q0|3)f0dhkE?IWIDFbVkHA=CjBN@9lc9|qk-!ch zN^;LnnK^tcC=Q8B`q3Xyh5Xykn1ESi1oX`NbuL8&f$p{L0Z~l_*iwu+hPOmc0eA>O zY<0u;_cv(>TUUdZAEFK*rSBk-c3|X!>(5*emp?-_^*o9qpyv27Zc7h{O9aMlAJ*#Q QzM+a_F0Pk64g6IB0O{#tCjbBd delta 217 zcmV;~04D$atp)w91&|>II6R*ve*uxP86yDzASE{D%0Z;H_xLf%dda(Gq|?F!#X}#Y zt^vdJof=tJjFDp^AQQLjvZ>jXN!OUEXh8e|{X{?NC&nMGnS|&433lF`K9ix19Ff2a zB4i-B8awEq1(h4>A%9>w%XeS~>fZbJE5xrGrfxS0dUu6^?zQd#QB4InJf9_hw?s|> zcnCoi^*h0!kBgh4GVXXag1ctn From 09e124e40dc75711cf28506d2eb40cd9e5fd6137 Mon Sep 17 00:00:00 2001 From: nk_ysg Date: Fri, 10 Feb 2023 14:00:30 +0800 Subject: [PATCH 2/2] fix call_api_cmd_halley.move --- .../tests/cases/call_api_cmd_halley.exp | 9 ++------- .../tests/cases/call_api_cmd_halley.move | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.exp b/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.exp index 0684e73322..d4e78abd13 100644 --- a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.exp +++ b/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.exp @@ -2,11 +2,6 @@ processed 4 tasks task 3 'run'. lines 7-14: { - "gas_used": 0, - "status": { - "Discard": { - "status_code": "26", - "status_code_name": "FEATURE_UNDER_GATING" - } - } + "gas_used": 10399, + "status": "Executed" } diff --git a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.move b/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.move index 309b14809e..e35fab2f64 100644 --- a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.move +++ b/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.move @@ -9,6 +9,6 @@ script{ use StarcoinFramework::Vector; fun main(_sender: signer, block_number: u64, block_hash: vector){ assert!(block_number == 1, 1000); - assert!(Vector::length(&block_hash) == 32, 1001); + assert!(Vector::length(&block_hash) > 32, 1001); } } \ No newline at end of file