Search in sources :

Example 1 with CfgTx

use of org.aion.zero.impl.config.CfgTx in project aion by aionnetwork.

the class ApiWeb3Aion method configTx.

private static JSONObject configTx() {
    CfgTx config = CfgAion.inst().getTx();
    JSONObject obj = new JSONObject();
    obj.put("cacheMax", config.getCacheMax());
    obj.put("poolBackup", config.getPoolBackup());
    obj.put("poolDump", config.getPoolDump());
    obj.put("seedmode", config.isSeedMode());
    return obj;
}
Also used : JSONObject(org.json.JSONObject) CfgTx(org.aion.zero.impl.config.CfgTx)

Aggregations

CfgTx (org.aion.zero.impl.config.CfgTx)1 JSONObject (org.json.JSONObject)1