Skip to content

Commit 9028424

Browse files
author
Jason Yellick
committed
[FAB-1280] Create fabric common components
https://jira.hyperledger.org/browse/FAB-1280 There are components in the orderer/common directory which are of more general use outside of the orderer, such as the cauthdsl, configtx, and policies components. Because there are likely other useful common components, such as the impending gRPC server, logging, and msp/bccsp work, this changeset creates a fabric/common directory and moves the above listed components from the orderer to this directory. Change-Id: I01765f1833685f768079211542f3b0ab4b00ed0e Signed-off-by: Jason Yellick <[email protected]>
1 parent b53de80 commit 9028424

19 files changed

+18
-18
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

orderer/common/configtx/manager.go common/configtx/manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"bytes"
2121
"fmt"
2222

23-
"github.com/hyperledger/fabric/orderer/common/policies"
23+
"github.com/hyperledger/fabric/common/policies"
2424
cb "github.com/hyperledger/fabric/protos/common"
2525

2626
"github.com/golang/protobuf/proto"

orderer/common/configtx/manager_test.go common/configtx/manager_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"fmt"
2121
"testing"
2222

23-
"github.com/hyperledger/fabric/orderer/common/policies"
23+
"github.com/hyperledger/fabric/common/policies"
2424
cb "github.com/hyperledger/fabric/protos/common"
2525

2626
"github.com/golang/protobuf/proto"

orderer/common/policies/policy.go common/policies/policy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package policies
1919
import (
2020
"fmt"
2121

22-
"github.com/hyperledger/fabric/orderer/common/cauthdsl"
22+
"github.com/hyperledger/fabric/common/cauthdsl"
2323
cb "github.com/hyperledger/fabric/protos/common"
2424

2525
"github.com/golang/protobuf/proto"

orderer/common/policies/policy_test.go common/policies/policy_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package policies
1919
import (
2020
"testing"
2121

22-
"github.com/hyperledger/fabric/orderer/common/cauthdsl"
22+
"github.com/hyperledger/fabric/common/cauthdsl"
2323
cb "github.com/hyperledger/fabric/protos/common"
2424

2525
"github.com/golang/protobuf/proto"

orderer/common/bootstrap/static/static.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ limitations under the License.
1717
package static
1818

1919
import (
20+
"github.com/hyperledger/fabric/common/cauthdsl"
21+
"github.com/hyperledger/fabric/common/configtx"
2022
"github.com/hyperledger/fabric/orderer/common/bootstrap"
21-
"github.com/hyperledger/fabric/orderer/common/cauthdsl"
22-
"github.com/hyperledger/fabric/orderer/common/configtx"
2323
"github.com/hyperledger/fabric/orderer/common/sharedconfig"
2424
cb "github.com/hyperledger/fabric/protos/common"
2525
ab "github.com/hyperledger/fabric/protos/orderer"

orderer/common/bootstrap/static/static_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"testing"
2222

2323
"github.com/golang/protobuf/proto"
24-
"github.com/hyperledger/fabric/orderer/common/cauthdsl"
25-
"github.com/hyperledger/fabric/orderer/common/configtx"
24+
"github.com/hyperledger/fabric/common/cauthdsl"
25+
"github.com/hyperledger/fabric/common/configtx"
2626
cb "github.com/hyperledger/fabric/protos/common"
2727
"github.com/hyperledger/fabric/protos/utils"
2828
)

orderer/common/deliver/deliver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
package deliver
1818

1919
import (
20-
"github.com/hyperledger/fabric/orderer/common/policies"
20+
"github.com/hyperledger/fabric/common/policies"
2121
"github.com/hyperledger/fabric/orderer/rawledger"
2222
cb "github.com/hyperledger/fabric/protos/common"
2323
ab "github.com/hyperledger/fabric/protos/orderer"

orderer/common/deliver/deliver_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"testing"
2222
"time"
2323

24+
"github.com/hyperledger/fabric/common/policies"
2425
"github.com/hyperledger/fabric/orderer/common/bootstrap/static"
25-
"github.com/hyperledger/fabric/orderer/common/policies"
2626
"github.com/hyperledger/fabric/orderer/rawledger"
2727
"github.com/hyperledger/fabric/orderer/rawledger/ramledger"
2828
cb "github.com/hyperledger/fabric/protos/common"

orderer/multichain/chainsupport.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ limitations under the License.
1717
package multichain
1818

1919
import (
20+
"github.com/hyperledger/fabric/common/configtx"
21+
"github.com/hyperledger/fabric/common/policies"
2022
"github.com/hyperledger/fabric/orderer/common/blockcutter"
2123
"github.com/hyperledger/fabric/orderer/common/broadcast"
22-
"github.com/hyperledger/fabric/orderer/common/configtx"
2324
"github.com/hyperledger/fabric/orderer/common/deliver"
2425
"github.com/hyperledger/fabric/orderer/common/filter"
25-
"github.com/hyperledger/fabric/orderer/common/policies"
2626
"github.com/hyperledger/fabric/orderer/common/sharedconfig"
2727
"github.com/hyperledger/fabric/orderer/rawledger"
2828
cb "github.com/hyperledger/fabric/protos/common"

orderer/multichain/manager.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ package multichain
1919
import (
2020
"fmt"
2121

22-
"github.com/hyperledger/fabric/orderer/common/configtx"
23-
"github.com/hyperledger/fabric/orderer/common/policies"
22+
"github.com/hyperledger/fabric/common/configtx"
23+
"github.com/hyperledger/fabric/common/policies"
2424
"github.com/hyperledger/fabric/orderer/common/sharedconfig"
2525
"github.com/hyperledger/fabric/orderer/rawledger"
2626
cb "github.com/hyperledger/fabric/protos/common"

orderer/multichain/systemchain.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ package multichain
1919
import (
2020
"bytes"
2121

22+
"github.com/hyperledger/fabric/common/configtx"
23+
"github.com/hyperledger/fabric/common/policies"
2224
"github.com/hyperledger/fabric/core/util"
23-
"github.com/hyperledger/fabric/orderer/common/configtx"
2425
"github.com/hyperledger/fabric/orderer/common/filter"
25-
"github.com/hyperledger/fabric/orderer/common/policies"
2626
"github.com/hyperledger/fabric/orderer/common/sharedconfig"
2727
cb "github.com/hyperledger/fabric/protos/common"
2828
ab "github.com/hyperledger/fabric/protos/orderer"

orderer/multichain/systemchain_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ import (
2020
"reflect"
2121
"testing"
2222

23+
"github.com/hyperledger/fabric/common/policies"
2324
coreutil "github.com/hyperledger/fabric/core/util"
2425
"github.com/hyperledger/fabric/orderer/common/bootstrap/static"
2526
"github.com/hyperledger/fabric/orderer/common/filter"
26-
"github.com/hyperledger/fabric/orderer/common/policies"
2727
"github.com/hyperledger/fabric/orderer/common/sharedconfig"
2828
cb "github.com/hyperledger/fabric/protos/common"
2929
ab "github.com/hyperledger/fabric/protos/orderer"

orderer/sbft/backend/backendab.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ limitations under the License.
1717
package backend
1818

1919
import (
20+
"github.com/hyperledger/fabric/common/policies"
2021
"github.com/hyperledger/fabric/orderer/common/deliver"
21-
"github.com/hyperledger/fabric/orderer/common/policies"
2222
"github.com/hyperledger/fabric/orderer/rawledger"
2323
cb "github.com/hyperledger/fabric/protos/common"
2424
ab "github.com/hyperledger/fabric/protos/orderer"

0 commit comments

Comments
 (0)