Update: as of 6/13/11 we have changed the 4 byte magic number in weeds to fix some problems and help support other things like bitcoin-abe that we now have a working version for weeds presently found in my patched branch of bitcoin-abe found here:
https://github.com/sacarlson/bitcoin-abe .
Bravo. I've applied the magic number upstream. In fact, I'd already given Abe Weeds support in a more scalable way but hadn't documented it until a minute ago.
# datadir can supply information about new currencies.
# Note that "address_version" is a byte string: the byte (or, perhaps
# someday, several bytes) preceding the public key hash before base-58
# conversion. Example:
#
#datadir += [{
# "dirname": "/home/weeds/testnet",
# "chain": "Weeds",
# "code3": "WDS",
# "address_version": "o" }]
If you'd like to establish a canonical Weeds/MultiCoin datadir, I'll include code similar to util.determine_db_dir and load the data by default:
# This function comes from bitcointools, bct-LICENSE.txt.
def determine_db_dir():
import os
import os.path
import platform
if platform.system() == "Darwin":
return os.path.expanduser("~/Library/Application Support/Bitcoin/")
elif platform.system() == "Windows":
return os.path.join(os.environ['APPDATA'], "Bitcoin")
return os.path.expanduser("~/.bitcoin")