mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Adds to the devel reference page detailed documentation on the following messages: block, getblocks, getdata, getheaders, headers, inv, mempool, merkleblock, notfound, and tx. Adds to the devel examples page an example of requesting and parsing a merkleblock message. Adds to the devel docs overview pages links to the above two new P2P sections. Tweaks the autocrossref plugin ignore pattern to not crossref in the middle of a GIF image name; this allows the inclusion of animated GIFs. |
||
---|---|---|
.. | ||
en-merkleblock-creation | ||
en-merkleblock-parsing | ||
README.md |
Some Animated GIF Hints
An excellent set of background information can be found here:
http://www.imagemagick.org/Usage/anim_basics/
-
Create source images. GraphViz supports direct GIF output, but its white background is not-quite-white and its transparent backgroud is hideous---so we output to PNG and then convert to GIF.
for f in *dot ; do dot -o ${f/.dot}.png -T png $f ; done
-
Create animated GIF using ImageMagick. Manually prefix first frame and suffix last frame to provide a brief pause in the animation on those frames. This wastes space but the optimization removes all of that wasted space except for 3 bytes.
convert -delay 100 \ en-merkleblock-parsing-001.gif \ *gif \ en-merkleblock-parsing-011.gif \ -loop 0 \ animated-en-merkleblock-parsing.gif
-
Compress animated GIF (118 KB -> 15 KB in this example). You may need to play with color settings; 8 worked in this example but 4 was too few. Fewer colors (base-2) results in much better compression.
gifsicle -b -O3 --colors 8 --no-background \ animated-en-merkleblock-parsing.gif