Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version v1.7.3 #878

Merged
merged 14 commits into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Cargo clippy check
env:
RUSTFLAGS: -D warnings
run: cargo clippy --all-targets
run: cargo clippy --tests --all-features --all-targets
- name: Copy contracts from prebuild docker images
run: devtools/fetch-binaries.sh
- name: Tests
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
paths:
- 'gwos/**'
- 'crates/tests/src/script_tests/**'
pull_request:
paths:
- 'gwos/**'
- 'crates/tests/src/script_tests/**'

jobs:
build:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com).

## [Unreleased]

## [v1.7.3] - 2022-11-27

- config: deny unknown fields in the config toml file [#862](https://github.com/godwokenrises/godwoken/pull/862)
- Cherry pick commits from develop branch to fix CI script tests [#878](https://github.com/godwokenrises/godwoken/pull/878)

## [v1.7.2] - 2022-11-25

- fix: use mem pool state for “get block” RPCs [#871](https://github.com/godwokenrises/godwoken/pull/871)
Expand Down
54 changes: 28 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion crates/benches/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gw-benches"
version = "1.7.2"
version = "1.7.3"
authors = ["Nervos Network"]
edition = "2018"
description = "Godwoken benchmarks."
Expand All @@ -20,6 +20,7 @@ gw-types = { path = "../types" }
gw-traits = { path = "../traits" }
gw-db = { path = "../db" }
gw-config = { path = "../config" }
gw-utils = { path = "../utils" }

[[bench]]
name = "bench_main"
Expand Down
4 changes: 2 additions & 2 deletions crates/benches/benches/benchmarks/smt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ use gw_traits::{ChainView, CodeStore};
use gw_types::{
bytes::Bytes,
core::{AllowedEoaType, ScriptHashType, Status},
offchain::RollupContext,
packed::{
AccountMerkleState, AllowedTypeHash, BlockInfo, BlockMerkleState, Fee, GlobalState,
L2Block, RawL2Block, RawL2Transaction, RollupConfig, SUDTArgs, SUDTTransfer, Script,
Expand All @@ -41,6 +40,7 @@ use gw_types::{
prelude::*,
U256,
};
use gw_utils::RollupContext;
use pprof::criterion::{Output, PProfProfiler};

// meta contract
Expand Down Expand Up @@ -147,6 +147,7 @@ impl BenchExecutionEnvironment {
let rollup_context = RollupContext {
rollup_config: genesis_config.rollup_config.clone().into(),
rollup_script_hash: ROLLUP_TYPE_HASH.into(),
fork_config: Default::default(),
};

let backend_manage = {
Expand Down Expand Up @@ -180,7 +181,6 @@ impl BenchExecutionEnvironment {

let generator = Generator::new(
backend_manage,
Default::default(),
account_lock_manage,
rollup_context,
Default::default(),
Expand Down
16 changes: 6 additions & 10 deletions crates/benches/benches/benchmarks/sudt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ use gw_traits::{ChainView, CodeStore};
use gw_types::{
bytes::Bytes,
core::{AllowedEoaType, ScriptHashType},
offchain::{RollupContext, RunResult},
offchain::RunResult,
packed::{AllowedTypeHash, BlockInfo, Fee},
packed::{RawL2Transaction, RollupConfig, SUDTArgs, SUDTTransfer, Script},
prelude::*,
U256,
};
use gw_utils::RollupContext;

const DUMMY_SUDT_VALIDATOR_SCRIPT_TYPE_HASH: [u8; 32] = [3u8; 32];

Expand Down Expand Up @@ -104,23 +105,18 @@ fn run_contract_get_result<S: State + CodeStore + JournalDB>(
let rollup_ctx = RollupContext {
rollup_config: rollup_config.clone(),
rollup_script_hash: [42u8; 32].into(),
fork_config: Default::default(),
};
let generator = Generator::new(
backend_manage,
Default::default(),
account_lock_manage,
rollup_ctx,
Default::default(),
);
let chain_view = DummyChainStore;
let run_result = generator.execute_transaction(
&chain_view,
tree,
block_info,
&raw_tx,
Some(u64::MAX),
None,
)?;
let run_result = generator
.execute_transaction(&chain_view, tree, block_info, &raw_tx, Some(u64::MAX), None)
.map_err(|err| err.downcast::<TransactionError>().expect("tx error"))?;
tree.finalise()?;
Ok(run_result)
}
Expand Down
2 changes: 1 addition & 1 deletion crates/block-producer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gw-block-producer"
version = "1.7.2"
version = "1.7.3"
authors = ["Nervos Network"]
edition = "2021"

Expand Down
3 changes: 2 additions & 1 deletion crates/block-producer/src/block_producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use gw_rpc_client::{contract::ContractsCellDepManager, rpc_client::RPCClient};
use gw_store::Store;
use gw_types::{
bytes::Bytes,
offchain::{DepositInfo, InputCellInfo, RollupContext},
offchain::{DepositInfo, InputCellInfo},
packed::{
CellDep, CellInput, CellOutput, GlobalState, L2Block, RollupAction, RollupActionUnion,
RollupSubmitBlock, Transaction, WithdrawalRequestExtra, WitnessArgs,
Expand All @@ -34,6 +34,7 @@ use gw_types::{
use gw_utils::{
fee::fill_tx_fee_with_local, genesis_info::CKBGenesisInfo, local_cells::LocalCellsManager,
query_rollup_cell, since::Since, transaction_skeleton::TransactionSkeleton, wallet::Wallet,
RollupContext,
};
use std::{collections::HashSet, sync::Arc, time::Instant};
use tokio::sync::Mutex;
Expand Down
Loading