You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ConfigurationEnvelope used to contain a ChainID and a Sequence
number. These fields were convenient, but ultimately inferrable from
the configuration envelope contents. In an effort to make this message
easier to understand and assemble, this changeset removes the sequence
and chainID from the ConfigurationEnvelope.
It also correspondingly fixes the configuration transaction processing
code to examine the contents of the ConfigurationEnvelope to infer these
values.
Change-Id: I9336360071c78d163506491bccb8e51c87e8fce6
Signed-off-by: Jason Yellick <[email protected]>
returnnil, fmt.Errorf("Key %v for type %v was new, but had an older Sequence %d set", config.Key, config.Type, config.LastModified)
193
240
}
194
241
isModified=true
195
242
}
196
243
197
244
// If a config item was modified, its LastModified must be set correctly
198
245
ifisModified {
199
-
ifconfig.LastModified!=configtx.Sequence {
200
-
returnnil, fmt.Errorf("Key %v for type %v was modified, but its LastModified %d does not equal current configtx Sequence %d", config.Key, config.Type, config.LastModified, configtx.Sequence)
246
+
ifconfig.LastModified!=seq {
247
+
returnnil, fmt.Errorf("Key %v for type %v was modified, but its LastModified %d does not equal current configtx Sequence %d", config.Key, config.Type, config.LastModified, seq)
0 commit comments