aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/test/state.go')
-rw-r--r--core/test/state.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/test/state.go b/core/test/state.go
index 2bb04e5..630c43f 100644
--- a/core/test/state.go
+++ b/core/test/state.go
@@ -518,9 +518,11 @@ func (s *State) AddRequestsFromOthers(reqsAsBytes []byte) (err error) {
// PackRequests pack all current pending requests, include those from others.
func (s *State) PackRequests() (b []byte, err error) {
- // Convert own requests to global one for packing.
- if _, err = s.PackOwnRequests(); err != nil {
- return
+ if s.local {
+ // Convert own requests to global one for packing.
+ if _, err = s.PackOwnRequests(); err != nil {
+ return
+ }
}
// Pack requests in global pool.
packed := []*StateChangeRequest{}