MCPcopy Index your code
hub / github.com/chain/Core / setState

Method setState

protocol/protocol.go:170–179  ·  view source on GitHub ↗
(b *legacy.Block, s *state.Snapshot)

Source from the content-addressed store, hash-verified

168}
169
170func (c *Chain) setState(b *legacy.Block, s *state.Snapshot) {
171 c.state.cond.L.Lock()
172 defer c.state.cond.L.Unlock()
173 c.state.block = b
174 c.state.snapshot = s
175 if b != nil && b.Height > c.state.height {
176 c.state.height = b.Height
177 c.state.cond.Broadcast()
178 }
179}
180
181// BlockSoonWaiter returns a channel that
182// waits for the block at the given height,

Callers 15

CommitAppliedBlockMethod · 0.95
handleScrollMethod · 0.80
componentDidMountMethod · 0.80
deleteClickMethod · 0.80
componentDidMountMethod · 0.80
toggleDropwdownMethod · 0.80
closeDropdownMethod · 0.80
renderMethod · 0.80
openReferenceDataMethod · 0.80
componentWillMountMethod · 0.80
keyCountChangeMethod · 0.80
componentDidMountMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected