|
@ -13,10 +13,11 @@ type CounterApplication struct { |
|
|
hashCount int |
|
|
hashCount int |
|
|
txCount int |
|
|
txCount int |
|
|
commitCount int |
|
|
commitCount int |
|
|
|
|
|
serial bool |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func NewCounterApplication() *CounterApplication { |
|
|
|
|
|
return &CounterApplication{} |
|
|
|
|
|
|
|
|
func NewCounterApplication(serial bool) *CounterApplication { |
|
|
|
|
|
return &CounterApplication{serial: serial} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (app *CounterApplication) Open() types.AppContext { |
|
|
func (app *CounterApplication) Open() types.AppContext { |
|
@ -25,6 +26,7 @@ func (app *CounterApplication) Open() types.AppContext { |
|
|
hashCount: app.hashCount, |
|
|
hashCount: app.hashCount, |
|
|
txCount: app.txCount, |
|
|
txCount: app.txCount, |
|
|
commitCount: app.commitCount, |
|
|
commitCount: app.commitCount, |
|
|
|
|
|
serial: app.serial, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|