Skip to content
Snippets Groups Projects
Commit b59c4895 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

fix(bma) transactions are always stored in 1.9+ (need by GVA)

parent 386a7e3d
No related branches found
No related tags found
1 merge request!1424enh(1441): Add config's storage into BMA /node/summary
Pipeline #32153 failed
......@@ -24,7 +24,6 @@ export interface Keypair {
export interface StorageDTO {
storage?: {
transactions?: boolean;
wotwizard?: boolean;
};
}
......@@ -200,7 +199,6 @@ export class ConfDTO
},
public powNoSecurity = false,
public storage = {
transactions: false,
wotwizard: false,
},
public txsMempoolSize?: number
......
......@@ -23,9 +23,7 @@ export class NodeBinding extends AbstractController {
version: this.server.version,
forkWindowSize: this.server.conf.forksize,
storage: {
transactions: this.server.conf.storage
? this.server.conf.storage.transactions
: true, // true by default (see app/module/config.ts)
transactions: true, // Always true, in 1.9
wotwizard: this.server.conf.storage?.wotwizard || false, // false by default (see app/module/config.ts)
},
},
......
......@@ -54,7 +54,7 @@ declare_types! {
let self_key_pair = if let Some(self_keypair_str) = rust_server_conf_stringified.self_keypair {
into_neon_res(&mut cx, crate::crypto::keypair_from_expanded_base58_secret_key(&self_keypair_str))?
} else {
Ed25519KeyPair::generate_random().expect("fail to gen random keyypair")
Ed25519KeyPair::generate_random().expect("fail to gen random keypair")
};
let txs_mempool_size = rust_server_conf_stringified.txs_mempool_size as usize;
let conf = DuniterCoreConf {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment