aboutsummaryrefslogtreecommitdiffstats
path: root/state/manifest.go
diff options
context:
space:
mode:
Diffstat (limited to 'state/manifest.go')
-rw-r--r--state/manifest.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/state/manifest.go b/state/manifest.go
index 21cd04a1a..994019a08 100644
--- a/state/manifest.go
+++ b/state/manifest.go
@@ -30,6 +30,12 @@ func (self *Manifest) AddMessage(msg *Message) *Message {
return msg
}
+func (self *Manifest) SetHash(hash []byte) {
+ for _, message := range self.Messages {
+ message.Block = hash
+ }
+}
+
type Messages []*Message
type Message struct {
To, From []byte