Search in sources :

Example 1 with FltrBlk

use of org.aion.api.server.types.FltrBlk in project aion by aionnetwork.

the class ApiWeb3Aion method eth_newBlockFilter.

public RpcMsg eth_newBlockFilter() {
    if (!isFilterEnabled) {
        return new RpcMsg(null, RpcError.NOT_ALLOWED, "Filters over rpc disabled.");
    }
    long id = fltrIndex.getAndIncrement();
    installedFilters.put(id, new FltrBlk());
    return new RpcMsg(StringUtils.toJsonHex(id));
}
Also used : FltrBlk(org.aion.api.server.types.FltrBlk)

Aggregations

FltrBlk (org.aion.api.server.types.FltrBlk)1