erigon-pulse/whisper/whisperv6
Guillaume Ballet df717abc99 whisper/whisperv6: fix PoW calculations to match the spec (#19330)
This PR fixes two issues in the PoW calculation of a Whisper envelope,
compared to the spec (see PoW Requirements):

- The pow is supposed to take the leading number of zeroes (i.e. most
  significant zeroes) and what it did was to take the number of trailing
  zeroes (i.e. least significant zeroes). It has been fixed to match what
  the spec and Parity does.
- The spec expects to use the size of the RLP encoded envelope, and it took
  something else, as described in #18070.
2019-03-26 10:23:59 +01:00
..
api_test.go whisperv6: remove duplicated code (#18015) 2018-12-03 14:15:22 +01:00
api.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
benchmarks_test.go whisper: get wnode to work with v6 (#16051) 2018-02-10 15:35:32 +02:00
config.go whisper: add light mode check to handshake (#16725) 2018-09-05 10:57:45 +02:00
doc.go whisper: remove unused error (#17315) 2018-08-07 15:16:56 +02:00
envelope_test.go whisper/whisperv6: fix PoW calculations to match the spec (#19330) 2019-03-26 10:23:59 +01:00
envelope.go whisper/whisperv6: fix PoW calculations to match the spec (#19330) 2019-03-26 10:23:59 +01:00
filter_test.go all: simplify s[:] to s where s is a slice (#17673) 2018-09-14 22:07:13 +02:00
filter.go whisper: fixed broken partial topic filtering 2018-08-13 16:27:25 +02:00
gen_criteria_json.go whisper: remove linter warnings (#15972) 2018-01-26 13:45:10 +02:00
gen_message_json.go whisper: remove linter warnings (#15972) 2018-01-26 13:45:10 +02:00
gen_newmessage_json.go whisper: remove linter warnings (#15972) 2018-01-26 13:45:10 +02:00
message_test.go whisper: get wnode to work with v6 (#16051) 2018-02-10 15:35:32 +02:00
message.go ecies: drop randomness parameter from PrivateKey.Decrypt (#16374) 2018-03-26 13:46:18 +03:00
peer_test.go whisper: log errors on failed tests (#18134) 2018-11-20 10:08:02 +01:00
peer.go whisper: add light mode check to handshake (#16725) 2018-09-05 10:57:45 +02:00
topic_test.go whisper/whisperv6: initial commit (clone of v5) (#15324) 2017-11-03 21:29:49 +01:00
topic.go whisper: remove linter warnings (#15972) 2018-01-26 13:45:10 +02:00
whisper_test.go whisper: fix loop in expire() (#17532) 2018-08-29 13:56:13 +03:00
whisper.go whisper: add light mode check to handshake (#16725) 2018-09-05 10:57:45 +02:00