Skip to content

Commit bbac03c

Browse files
committed
[FAB-9204] new proto for transient store entry
In the current code, the transient store persists rwset.TxPvtReadWriteSet as a value. This CR defines a new proto message in the `transientstore` package named `TxPvtReadWriteSetWithConfigInfo` which encapsulates rwset.TxPvtReadWriteSet and common.CollectionConfigPackage Gossip will utilize this new proto message while supporting dissemination with dynamic collections. Change-Id: Ia178d27fba185ea620818a056c43dc575880a7a0 Signed-off-by: senthil <cendhu@gmail.com>
1 parent a23d065 commit bbac03c

File tree

2 files changed

+117
-0
lines changed

2 files changed

+117
-0
lines changed

protos/transientstore/transientstore.pb.go

+83
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
Copyright IBM Corp. 2016 All Rights Reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
syntax = "proto3";
18+
19+
20+
package transientstore;
21+
22+
option go_package = "github.com/hyperledger/fabric/protos/transientstore";
23+
option java_package = "org.hyperledger.fabric.protos.transientstore";
24+
25+
import "ledger/rwset/rwset.proto";
26+
import "common/collection.proto";
27+
28+
// TxPvtReadWriteSetWithConfigInfo encapsulates the transaction's private
29+
// read-write set and additional information about the configurations such as
30+
// the latest collection config when the transaction is simulated
31+
message TxPvtReadWriteSetWithConfigInfo {
32+
rwset.TxPvtReadWriteSet pvt_rwset = 1;
33+
common.CollectionConfigPackage collection_configs = 2;
34+
}

0 commit comments

Comments
 (0)