File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,10 @@ func (app *PersistentKVStoreApplication) ProcessProposal(
183
183
return types.ResponseProcessProposal {Result : types .ResponseProcessProposal_ACCEPT }
184
184
}
185
185
186
+ func (app * PersistentKVStoreApplication ) RunMigrations (req types.RequestRunMigrations ) types.ResponseRunMigrations {
187
+ return types.ResponseRunMigrations {AppHash : []byte {}}
188
+ }
189
+
186
190
//---------------------------------------------
187
191
// update validators
188
192
Original file line number Diff line number Diff line change @@ -31,6 +31,14 @@ type Application interface {
31
31
OfferSnapshot (RequestOfferSnapshot ) ResponseOfferSnapshot // Offer a snapshot to the application
32
32
LoadSnapshotChunk (RequestLoadSnapshotChunk ) ResponseLoadSnapshotChunk // Load a snapshot chunk
33
33
ApplySnapshotChunk (RequestApplySnapshotChunk ) ResponseApplySnapshotChunk // Apply a shapshot chunk
34
+
35
+ RunMigrations (RequestRunMigrations ) ResponseRunMigrations
36
+ }
37
+
38
+ type RequestRunMigrations struct {}
39
+
40
+ type ResponseRunMigrations struct {
41
+ AppHash []byte
34
42
}
35
43
36
44
//-------------------------------------------------------
@@ -105,6 +113,11 @@ func (BaseApplication) ProcessProposal(req RequestProcessProposal) ResponseProce
105
113
return ResponseProcessProposal {Result : ResponseProcessProposal_ACCEPT }
106
114
}
107
115
116
+ // RunMigrations implements Application.
117
+ func (BaseApplication ) RunMigrations (RequestRunMigrations ) ResponseRunMigrations {
118
+ return ResponseRunMigrations {AppHash : []byte {}}
119
+ }
120
+
108
121
//-------------------------------------------------------
109
122
110
123
// GRPCApplication is a GRPC wrapper for Application
You can’t perform that action at this time.
0 commit comments