Skip to content

Commit

Permalink
[FAB-2170] Remove ConfigItem references
Browse files Browse the repository at this point in the history
https://jira.hyperledger.org/browse/FAB-2170

This CR finally removes the deprecated ConfigItem interface from both
the protos and a few remaining pieces of legacy code.

Change-Id: Ie898c3363fea252e24fe320f02dc16e7c5c250b6
Signed-off-by: Jason Yellick <[email protected]>
  • Loading branch information
Jason Yellick committed Feb 14, 2017
1 parent 32b772c commit 6434844
Show file tree
Hide file tree
Showing 17 changed files with 172 additions and 920 deletions.
8 changes: 4 additions & 4 deletions common/configtx/handlers/channel/sharedconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func groupToKeyValue(configGroup *cb.ConfigGroup) (string, *cb.ConfigValue) {
panic("No value encoded")
}

func makeInvalidConfigItem() *cb.ConfigValue {
func makeInvalidConfigValue() *cb.ConfigValue {
return &cb.ConfigValue{
Value: []byte("Garbage Data"),
}
Expand Down Expand Up @@ -80,7 +80,7 @@ func TestRollback(t *testing.T) {
}

func TestHashingAlgorithm(t *testing.T) {
invalidMessage := makeInvalidConfigItem()
invalidMessage := makeInvalidConfigValue()
invalidAlgorithm := TemplateHashingAlgorithm("MD5")
validAlgorithm := DefaultHashingAlgorithm()

Expand Down Expand Up @@ -110,7 +110,7 @@ func TestHashingAlgorithm(t *testing.T) {
}

func TestBlockDataHashingStructure(t *testing.T) {
invalidMessage := makeInvalidConfigItem()
invalidMessage := makeInvalidConfigValue()
invalidWidth := TemplateBlockDataHashingStructure(0)
validWidth := DefaultBlockDataHashingStructure()

Expand Down Expand Up @@ -140,7 +140,7 @@ func TestBlockDataHashingStructure(t *testing.T) {
}

func TestOrdererAddresses(t *testing.T) {
invalidMessage := makeInvalidConfigItem()
invalidMessage := makeInvalidConfigValue()
validMessage := DefaultOrdererAddresses()
m := NewSharedConfigImpl(nil, nil)
m.BeginConfig()
Expand Down
105 changes: 0 additions & 105 deletions common/configtx/inspector/common_types.go

This file was deleted.

61 changes: 0 additions & 61 deletions common/configtx/inspector/inspector.go

This file was deleted.

151 changes: 0 additions & 151 deletions common/configtx/inspector/orderer_types.go

This file was deleted.

Loading

0 comments on commit 6434844

Please sign in to comment.