Post
Topic
Board Project Development
Re: New release of MultiCoin client a branch of the BitCoin client
by
John Tobey
on 13/07/2011, 14:50:09 UTC
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.
Code:
# 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:
Code:
# 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")