aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisperv6/doc.go
diff options
context:
space:
mode:
authorgluk256 <gluk256@users.noreply.github.com>2017-12-21 22:17:27 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-12-21 22:17:27 +0800
commit38b1e8ee207da636d95bea760f577eca462307a6 (patch)
tree3bb47e1be937bcdbae94b55b772c8ce8422cf386 /whisper/whisperv6/doc.go
parentb0d41e386e456cefd593db303a9f5284bf08cd07 (diff)
downloadgo-tangerine-38b1e8ee207da636d95bea760f577eca462307a6.tar.gz
go-tangerine-38b1e8ee207da636d95bea760f577eca462307a6.tar.zst
go-tangerine-38b1e8ee207da636d95bea760f577eca462307a6.zip
whisper/whisperv6: PoW requirement (#15701)
New Whisper-level message introduced (PoW requirement), corresponding logic added, plus some tests.
Diffstat (limited to 'whisper/whisperv6/doc.go')
-rw-r--r--whisper/whisperv6/doc.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/whisper/whisperv6/doc.go b/whisper/whisperv6/doc.go
index 64925ba48..2a4911d65 100644
--- a/whisper/whisperv6/doc.go
+++ b/whisper/whisperv6/doc.go
@@ -40,10 +40,13 @@ const (
ProtocolVersionStr = "6.0"
ProtocolName = "shh"
- statusCode = 0 // used by whisper protocol
- messagesCode = 1 // normal whisper message
- p2pCode = 2 // peer-to-peer message (to be consumed by the peer, but not forwarded any further)
- p2pRequestCode = 3 // peer-to-peer message, used by Dapp protocol
+ // whisper protocol message codes, according to EIP-627
+ statusCode = 0 // used by whisper protocol
+ messagesCode = 1 // normal whisper message
+ powRequirementCode = 2 // PoW requirement
+ bloomFilterExCode = 3 // bloom filter exchange
+ p2pRequestCode = 126 // peer-to-peer message, used by Dapp protocol
+ p2pMessageCode = 127 // peer-to-peer message (to be consumed by the peer, but not forwarded any further)
NumberOfMessageCodes = 128
paddingMask = byte(3)