7 failures
This commit is contained in:
parent
22acb046ed
commit
a9bec01b90
|
@ -208,10 +208,13 @@ module Pigeon
|
||||||
count = db.get_message_count_for(author.multihash)
|
count = db.get_message_count_for(author.multihash)
|
||||||
expected_prev = db.get_message_by_depth(author.multihash, count - 1) || Pigeon::NOTHING
|
expected_prev = db.get_message_by_depth(author.multihash, count - 1) || Pigeon::NOTHING
|
||||||
assert("depth", count, msg.depth)
|
assert("depth", count, msg.depth)
|
||||||
# TODO: Re-visit this. Our current verification method
|
expected_lpma = Helpers.lipmaa(msg.depth)
|
||||||
# is probably too strict and won't allow for partial
|
if expected_lpma
|
||||||
# verification of feeds.
|
real = db.get_message_by_depth(author.multihash, expected_lpma)
|
||||||
assert("lipmaa", msg.lipmaa, Helpers.lipmaa(msg.depth) || NOTHING)
|
assert("lipmaa", msg.lipmaa, real)
|
||||||
|
else
|
||||||
|
assert("lipmaa", msg.lipmaa, NOTHING)
|
||||||
|
end
|
||||||
assert("prev", msg.prev, expected_prev)
|
assert("prev", msg.prev, expected_prev)
|
||||||
tpl = msg.template.render_without_signature
|
tpl = msg.template.render_without_signature
|
||||||
Helpers.verify_string(author, signature, tpl)
|
Helpers.verify_string(author, signature, tpl)
|
||||||
|
|
Loading…
Reference in New Issue