MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewState

Function NewState

xenomint/state.go:72–82  ·  view source on GitHub ↗

NewState returns a new State bound to strg.

(level sql.IsolationLevel, nodeID proto.NodeID, strg xi.Storage)

Source from the content-addressed store, hash-verified

70
71// NewState returns a new State bound to strg.
72func NewState(level sql.IsolationLevel, nodeID proto.NodeID, strg xi.Storage) (s *State) {
73 s = &State{
74 level: level,
75 nodeID: nodeID,
76 strg: strg,
77 pool: newPool(),
78 maxTx: 100,
79 }
80 s.openHandler()
81 return
82}
83
84func (s *State) openHandler() {
85 if s.level == sql.LevelReadUncommitted {

Callers 3

NewChainFunction · 0.85
TestStateFunction · 0.85
TestSerializableStateFunction · 0.85

Calls 2

newPoolFunction · 0.85
openHandlerMethod · 0.80

Tested by 2

TestStateFunction · 0.68
TestSerializableStateFunction · 0.68