encodeStartParams method

JsonMap encodeStartParams()

Implementation

JsonMap encodeStartParams() {
  return {
    'mm2': 1,
    'allow_weak_password': allowWeakPassword,
    'rpc_password': rpcPassword,
    'netid': netid,
    'gui': gui,
    if (walletPassword?.isNotEmpty ?? false)
      'wallet_password': walletPassword,
    if (walletName?.isNotEmpty ?? false) 'wallet_name': walletName,
    if (seed?.isNotEmpty ?? false) 'passphrase': seed,
    if (dbDir != null) 'dbdir': dbDir,
    if (userHome != null) 'userhome': userHome,
    if (rpcIp != null) 'rpcip': rpcIp,
    if (rpcPort != null) 'rpcport': rpcPort,
    if (rpcLocalOnly != null) 'rpc_local_only': rpcLocalOnly,
    'allow_registrations': allowRegistrations,
    if (enableHd != null) 'enable_hd': enableHd,
    if (hdAccountId != null) 'hd_account_id': hdAccountId,
    'https': https,
    'coins': coins,
    // 'use_trading_proto_v2': true,
    if (seedNodes != null && seedNodes!.isNotEmpty) 'seednodes': seedNodes,
    if (disableP2p != null) 'disable_p2p': disableP2p,
    if (iAmSeed != null) 'i_am_seed': iAmSeed,
    if (isBootstrapNode != null) 'is_bootstrap_node': isBootstrapNode,
  };
}