commit 883dcd2f22c96b12fd4a9abedf6d9c64a9fa606a
parent f19460983e6c0cc00af8855a85bbd48f2af54737
Author: Peter Kosyh <p.kosyh@gmail.com>
Date: Fri, 5 Feb 2021 13:33:17 +0300
trust to node
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ii/db.go b/ii/db.go
@@ -768,11 +768,11 @@ func (db *DB) _Store(m *Msg, edit bool) error {
if _, ok := db.Idx.Hash[m.MsgId]; ok && !edit { // exist and not edit
return errors.New("Already exists")
}
- if repto != "" {
- if _, ok := db.Idx.Hash[repto]; !ok { // repto is absent, we should avoid loops!
- return errors.New("Wrong repto: " + repto)
- }
- }
+// if repto != "" {
+// if _, ok := db.Idx.Hash[repto]; !ok { // repto is absent, we should avoid loops!
+// return errors.New("Wrong repto: " + repto)
+// }
+// }
fi, err := os.Stat(db.BundlePath())
var off int64
if err == nil {