(from uint32)
| 257 | } |
| 258 | |
| 259 | func (b *branch) sprint(from uint32) (buff string) { |
| 260 | var nodes = b.head.fetchNodeList(from) |
| 261 | for i, v := range nodes { |
| 262 | if i == 0 { |
| 263 | var p = v.parent |
| 264 | buff += fmt.Sprintf("* #%d:%d %s {%d}", |
| 265 | p.height, p.count, p.hash.Short(4), p.txCount) |
| 266 | } |
| 267 | if d := v.height - v.parent.height; d > 1 { |
| 268 | buff += fmt.Sprintf(" <-- (skip %d blocks)", d-1) |
| 269 | } |
| 270 | buff += fmt.Sprintf(" <-- #%d:%d %s {%d}", |
| 271 | v.height, v.count, v.hash.Short(4), v.txCount) |
| 272 | } |
| 273 | return |
| 274 | } |
no test coverage detected