()
| 1069 | } |
| 1070 | |
| 1071 | func (c *Chain) stat() { |
| 1072 | var ( |
| 1073 | ic = atomic.LoadInt32(&c.ai.multiIndexCount) |
| 1074 | rc = atomic.LoadInt32(&c.ai.responseCount) |
| 1075 | tc = atomic.LoadInt32(&c.ai.ackCount) |
| 1076 | bc = atomic.LoadInt32(&c.cachedBlockCount) |
| 1077 | ) |
| 1078 | // Print chain stats |
| 1079 | c.logEntry().WithFields(log.Fields{ |
| 1080 | "multiIndex_count": ic, |
| 1081 | "response_header_count": rc, |
| 1082 | "query_tracker_count": tc, |
| 1083 | "cached_block_count": bc, |
| 1084 | }).Info("chain mem stats") |
| 1085 | // Print xeno stats |
| 1086 | c.st.Stat(c.databaseID) |
| 1087 | } |
| 1088 | |
| 1089 | func (c *Chain) billing(h int32, node *blockNode) (ub *types.UpdateBilling, err error) { |
| 1090 | le := c.logEntryWithHeadState() |
no test coverage detected