Commit b82e7378 authored by Zsolt from VM's avatar Zsolt from VM
Browse files

tweaked fabric config a bit to lower latency

parent 7db18e70
......@@ -166,8 +166,8 @@ export class GainSierra extends BasicContract {
}
}
public async resetTime(ctx: Context) {
await ctx.stub.putState(APPTIME, Buffer.from(JSON.stringify(0)));
async resetTime(ctx: Context) {
await ctx.stub.putState(APPTIME, Buffer.from(JSON.stringify(1)));
}
public async getTime(ctx: Context) : Promise<number> {
......@@ -175,7 +175,7 @@ export class GainSierra extends BasicContract {
return JSON.parse(valAsBytes.toString());
}
public async incrementTime(ctx: Context) {
async incrementTime(ctx: Context) {
const curTime = await this.getTime(ctx);
const nextTime = curTime+1;
await ctx.stub.putState(APPTIME, Buffer.from(JSON.stringify(nextTime)))
......
......@@ -223,7 +223,7 @@ Orderer: &OrdererDefaults
- orderer.example.com:7050
# Batch Timeout: The amount of time to wait before creating a batch
BatchTimeout: 1s
BatchTimeout: 0.5s
# Batch Size: Controls the number of messages batched into a block
BatchSize:
......@@ -233,12 +233,12 @@ Orderer: &OrdererDefaults
# Absolute Max Bytes: The absolute maximum number of bytes allowed for
# the serialized messages in a batch.
AbsoluteMaxBytes: 1MB
AbsoluteMaxBytes: 256KB
# Preferred Max Bytes: The preferred maximum number of bytes allowed for
# the serialized messages in a batch. A message larger than the preferred
# max bytes will result in a batch larger than preferred max bytes.
PreferredMaxBytes: 16 KB
PreferredMaxBytes: 1 KB
Kafka:
# Brokers: A list of Kafka brokers to which the orderer connects
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment