Skip to content

Commit

Permalink
chore: up
Browse files Browse the repository at this point in the history
  • Loading branch information
iosh committed Oct 10, 2024
1 parent 66e3fff commit 67401e2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions conflux.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ export interface ConfluxConfig {
genesisSecrets?: Array<string>
/** @default: false */
devPackTxImmediately?: boolean
/** @default:0 */
/** @default:1 */
posReferenceEnableHeight?: number
/** @default: 1 */
/** @default:2 */
defaultTransitionTime?: number
/** @default:3 */
cip1559TransitionHeight?: number
/** @default: temp dir */
confluxDataDir?: string
/** pos config path */
Expand Down
7 changes: 4 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ export async function createServer(userConfig: ConfluxConfig = {}) {
isServiceCreated = true;

const config: ConfluxConfig = {
posConfigPath: path.join(__dirname, "./pos_config/pos_config.yaml"),
posConfigPath: path.join(__dirname, "./configs/pos_config/pos_config.yaml"),
posInitialNodesPath: path.join(
__dirname,
"./pos_config/initial_nodes.json",
"../configs/pos_config/initial_nodes.json",
),
posPrivateKeyPath: path.join(__dirname, "./pos_config/pos_key"),
posPrivateKeyPath: path.join(__dirname, "../configs/pos_config/pos_key"),
logConf: path.join(__dirname, "./configs/log.yaml"),
...userConfig,
};

Expand Down
2 changes: 2 additions & 0 deletions vite.config.ts → vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
testTimeout: 500000,
hookTimeout: 500000,
environment: "node",
},
});

0 comments on commit 67401e2

Please sign in to comment.