• Felix Lange's avatar
    eth, p2p: remove EncodeMsg from p2p.MsgWriter · eb0e7b1b
    Felix Lange authored
    ...and make it a top-level function instead.
    
    The original idea behind having EncodeMsg in the interface was that
    implementations might be able to encode RLP data to their underlying
    writer directly instead of buffering the encoded data. The encoder
    will buffer anyway, so that doesn't matter anymore.
    
    Given the recent problems with EncodeMsg (copy-pasted implementation
    bug) I'd rather implement once, correctly.
    eb0e7b1b
Name
Last commit
Last update
_data Loading commit data...
cmd Loading commit data...
compression/rle Loading commit data...
core Loading commit data...
crypto Loading commit data...
eth Loading commit data...
ethdb Loading commit data...
ethutil Loading commit data...
event Loading commit data...
javascript Loading commit data...
logger Loading commit data...
miner Loading commit data...
p2p Loading commit data...
pow Loading commit data...
ptrie Loading commit data...
rlp Loading commit data...
rpc Loading commit data...
state Loading commit data...
tests Loading commit data...
trie Loading commit data...
types Loading commit data...
ui Loading commit data...
vm Loading commit data...
websocket Loading commit data...
whisper Loading commit data...
xeth Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.travis.yml Loading commit data...
Dockerfile Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
gocoverage.sh Loading commit data...
install.sh Loading commit data...