Rallias

Untitled

Oct 30th, 2013
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.00 KB | None | 0 0
  1. # Config file for Abe.
  2.  
  3. # dbtype and connect-args are required.
  4. # If not configured to run under FastCGI, host OR port is required.
  5.  
  6. # "NAME=VALUE" and "NAME VALUE" are equivalent. Just "NAME" sets
  7. # value to True. Values of the form "..." or [...] or {...} are
  8. # parsed as extended JSON, as are the values true, false, and null.
  9. # Abe extends JSON syntax to allow strings to contain control
  10. # characters (tab, LF, and CR) and to allow comments (from # to end of
  11. # line) between tokens.
  12.  
  13. # "NAME += VALUE" appends VALUE to an array or updates an object
  14. # defined by NAME. Hyphen in NAME is read as underscore, so
  15. # "connect_args" and "connect-args" are synonymous. Later values
  16. # override earlier ones (unless using "+=").
  17.  
  18. # All values may be passed as command-line arguments by preceding NAME
  19. # with "--". Example: "python -m Abe.abe --upgrade --dbtype=sqlite3
  20. # --connect-args=abe.sqlite --port 2750".
  21.  
  22. # dbtype is the name of a Python module. connect-args are arguments
  23. # to pass to the module's "connect" function. Consult the module's
  24. # documentation for values. The user needs permission to create
  25. # tables. Consult your database documentation on how to configure a
  26. # database. See also README.txt.
  27.  
  28. # PostgreSQL example; see also README-POSTGRES.txt:
  29. #dbtype = psycopg2
  30. #connect-args = { "database": "abe" }
  31.  
  32. # MySQL example; see also README-MYSQL.txt:
  33. dbtype MySQLdb
  34. connect-args {"user":"abebtc","passwd":"abebtcrandomschmuck","db":"abebtc"}
  35.  
  36. # SQLite3 example:
  37. #dbtype = sqlite3
  38. #connect-args = abe.sqlite
  39.  
  40. # Oracle example:
  41. #dbtype=cx_Oracle
  42. #connect-args=user/pass@SID
  43.  
  44. # ODBC examples. Don't use the same schema via ODBC and non-ODBC!
  45. #dbtype = pyodbc
  46. #connect-args = DSN=Abe;PWD=B!tc0iN;
  47. #connect-args = DRIVER={ORACLE};DB=ORCL;UID=abe;PWD=Bitcoin;
  48. #connect-args = DRIVER={PostgreSQL ANSI};Database=abe;
  49.  
  50. # Workaround for ODBC drivers that begin in autocommit mode:
  51. #connect-args {"":"DRIVER={PostgreSQL ANSI};Database=abe;","autocommit":false}
  52.  
  53. # IBM DB2 example:
  54. #dbtype = ibm_db_dbi
  55. #connect-args {"dsn":"DATABASE=abe;UID=db2inst1;PWD=B!tCo1N","conn_options":{"102":0}}
  56.  
  57. # Specify port and/or host to serve HTTP instead of FastCGI:
  58. #port 2750
  59. #host localhost
  60.  
  61. # Specify no-serve to exit immediately after importing block files:
  62. #no-serve
  63.  
  64. # Specify no-load to start abe server without ever loading the
  65. # blockchain - this is useful if you have a dedicated instance loading
  66. # blocks into your Abe database.
  67. #no-load
  68.  
  69. # "upgrade" tells Abe to upgrade database objects automatically after
  70. # code updates:
  71. #upgrade
  72. #
  73. # Sometimes upgrades fail and leave the database unusable. Sometimes
  74. # upgrades take several minutes or longer. You may get an idea of the
  75. # time required by looking at comments near the bottom of
  76. # Abe/upgrade.py. For example, if your schema version is Abe18 and
  77. # you are upgrading to schema version Abe19, the relevant lines are:
  78. #
  79. # ('Abe18', add_block_num_tx), # Seconds
  80. # ('Abe18.1', add_block_ss_destroyed), # Seconds
  81. # ('Abe18.2', init_block_tx_sums), # 5 minutes
  82. # ('Abe18.3', replace_chain_summary), # Fast
  83. #
  84. # In this case, you could expect a 5-minute upgrade. The following
  85. # SQL shows the current schema version, provided that it is at least
  86. # Abe13:
  87. #
  88. # SELECT configvar_value FROM configvar
  89. # WHERE configvar_name = 'schema_version'
  90. #
  91. # "python -m Abe.abe -v" shows the schema version that the software
  92. # requires. Sometimes you can upgrade a live database by running
  93. # "python -m Abe.abe --config YOUR_ABE_CONFIG --no-serve --upgrade"
  94. # but this often results in server errors and may sometimes corrupt
  95. # the data. It is best if the upgrade process has exclusive access to
  96. # the database.
  97.  
  98. # Include another configuration file, relative to this one's directory.
  99. #config ../secret/abe.conf
  100.  
  101. # Add or replace object fields. This example assumes connect-args
  102. # previously held an object such as { "user": "abe" }.
  103. connect-args += { "username": "bitcoinrpc" }
  104. connect-args += { "password": "G56NsbaNrAx26fTzJDBbpr6822Ra8bz4miHS44QR88bc" }
  105.  
  106. # datadir lists directories to scan for block files.
  107. datadir += /storage/bitcoin
  108. #datadir += /home/bitcoin/.namecoin
  109.  
  110. #datadir += [{
  111. # "dirname": "/home/bitcoin/.bitcoin",
  112. # "loader": "rpc" # See the comments for default-loader below.
  113. # }]
  114.  
  115. # datadir can supply information about new currencies.
  116. # Note that "address_version" is a byte string: the byte (or, perhaps
  117. # someday, several bytes) preceding the public key hash before base-58
  118. # conversion. Example:
  119. #
  120. #datadir += [{
  121. # "dirname": "/home/weeds/testnet",
  122. # "chain": "Weeds",
  123. # "code3": "WDS",
  124. # "address_version": "\u00f3" }]
  125. #datadir += [{
  126. # "dirname":"/home/namecoin/.namecoin/testnet",
  127. # "chain":"NCTestnet",
  128. # "code3":"NC0",
  129. # "address_version":"\u006f"}]
  130.  
  131. # ignore-bit8-chains: list of chains for which block version bit 8 does
  132. # NOT indicate a Namecoin-style merge-mined auxiliary proof-of-work.
  133. #ignore-bit8-chains = ["Bitcoin", "Testnet"]
  134.  
  135. # Set binary-type=hex if you want to store binary data (hashes,
  136. # scripts, keys, etc.) as hexadecimal strings regardless of the
  137. # database's binary data support.
  138. #
  139. # To use experimental support for PostgreSQL BYTEA storage, set
  140. # binary-type=pg-bytea. This may become the default on databases that
  141. # support it.
  142. #
  143. # To use MySQL binary types, set binary-type=binary. This may become the
  144. # default on databases that support it.
  145. #
  146. # The binary-type setting affects only the first run, where Abe
  147. # creates its tables.
  148. #binary-type hex
  149.  
  150. # Some databases have trouble with the large integers that Abe uses
  151. # for statistics. Setting int-type=str causes Abe to pass certain
  152. # integers to the database as strings and cast them to floating point
  153. # in SQL expressions that calculate statistics. Try this if SQLite
  154. # complains "OverflowError: long too big to convert".
  155. #int-type str
  156.  
  157. # URL component for static content: logos, style sheets.
  158. #static-path =
  159.  
  160. # Filesystem location of static content, if served by Abe.
  161. #document-root = Abe/htdocs
  162.  
  163. # Uncomment "auto-agpl" to add a "Source" link to each page pointing
  164. # to a "/download" URL that streams the directory containing abe.py
  165. # and all subdirectories as a compressed TAR archive. This exposes
  166. # files outside of the htdocs directory to the client, so use it with
  167. # caution.
  168. auto-agpl
  169.  
  170. # Directory name and tarfile name prefix for auto-agpl source
  171. # download.
  172. #download-name = abe
  173.  
  174. # Primitive template system until I separate view from controller.
  175. #template_vars += {
  176. # "CONTENT_TYPE": "text/html; charset=utf-8",
  177. # "APPNAME": "Abe",
  178. # "DONATIONS_BTC": "1PWC7PNHL1SgvZaN7xEtygenKjWobWsCuf",
  179. # "DONATIONS_NMC": "NJ3MSELK1cWnqUa6xhF2wUYAnz3RSrWXcK"
  180. #}
  181. #template_vars += { "DONATIONS_BTC": "1YourBitcoinAddressHere" }
  182. #template_vars += { "HOMEPAGE": "chain/Bitcoin" }
  183. #template = "
  184. #<!DOCTYPE html>
  185. #<html lang=\"en\">
  186. #<head>
  187. # <link rel=\"stylesheet\" type=\"text/css\"
  188. # href=\"%(dotdot)s%(STATIC_PATH)sabe.css\" />
  189. # <link rel=\"shortcut icon\" href=\"%(dotdot)s%(STATIC_PATH)sfavicon.ico\" />
  190. # <title>%(title)s</title>
  191. #</head>
  192. #<body>
  193. # <h1><a href=\"%(dotdot)s%(HOMEPAGE)s\"><img
  194. # src=\"%(dotdot)s%(STATIC_PATH)slogo32.png\" alt=\"Abe logo\" /></a> %(h1)s
  195. # </h1>
  196. # %(body)s
  197. # <p style=\"font-size: smaller\">
  198. # <span style=\"font-style: italic\">
  199. # Powered by <a href=\"%(ABE_URL)s\">%(APPNAME)s</a>
  200. # </span>
  201. # Tips appreciated!
  202. # <a href=\"%(dotdot)saddress/%(DONATIONS_BTC)s\">BTC</a>
  203. # <a href=\"%(dotdot)saddress/%(DONATIONS_NMC)s\">NMC</a>
  204. # </p>
  205. #</body>
  206. #</html>
  207. #"
  208.  
  209. # Save blocks to the database after reading this many bytes from a
  210. # file. Abe may run faster with a higher value, for example 10000,
  211. # while loading lots of data with a single process. Non-zero values
  212. # can lead to errors when two processes load transaction data
  213. # simultaneously.
  214. #commit-bytes = 0
  215.  
  216. # "rescan" causes Abe to search all block files for new blocks. This
  217. # can take several minutes on a large chain, longer if many of the
  218. # blocks are not already in Abe's database. You might want to do this
  219. # if Abe becomes stuck at an old block number: new blocks are loaded
  220. # but not attached to the chain. You must run once with "rescan"
  221. # after switching to another copy of the block files.
  222. #rescan
  223.  
  224. # For displaying short links, base-url overrides the first part of the
  225. # URL. This does not affect the link target, only the visible text.
  226. # The value must include the trailing slash (/) if applicable.
  227. #base-url = http://abe.example.org/
  228.  
  229. # History pages of addresses with more than this many receipts will be
  230. # not be shown. This protects against denial of service. Use -1 for
  231. # no limit. This also limits the total inputs shown by
  232. # /unspent/ADDR|ADDR|...
  233. #address-history-rows-max 1000
  234.  
  235. # Argument to logging.config.dictConfig. Requires Python 2.7 or later.
  236. # http://docs.python.org/library/logging.config.html#logging-config-dictschema
  237. #logging = {
  238. # "version":1,
  239. # "handlers": {
  240. # "console": {
  241. # "class": "logging.StreamHandler",
  242. # "formatter": "full",
  243. # "level": "DEBUG"}},
  244. # "formatters": {
  245. # "full": {
  246. # "format": "%(asctime)s [%(process)d:%(threadName)s] %(name)s %(levelname)s - %(message)s"}},
  247. # "root": {
  248. # "handlers": ["console"],
  249. # "level": "DEBUG"}}
  250.  
  251. # --log-sql logs all queries. This is quite verbose, so it is disabled
  252. # by default.
  253. #log-sql
  254.  
  255. # Create and use the abe_firstbits table. This affects only the first
  256. # run, where Abe creates its tables, or the first run after an upgrade
  257. # to firstbits-enabled Abe. This is disabled by default.
  258. #use-firstbits
  259.  
  260. # shortlink-type=firstbits constructs address short links using
  261. # firstbits. This is the default when use-firstbits is true.
  262. # Otherwise, shortlink-type is a number of address characters to use.
  263. # Fewer characters result in more collisions, where the page shows a
  264. # list of matches instead of redirecting to the address history.
  265. #shortlink-type 10
  266.  
  267. # keep-scriptsig=false prevents storage and display of transaction
  268. # input signature scripts (scriptSig) and sequence numbers. This
  269. # reduces the database size by about 20%.
  270. #keep-scriptsig
  271.  
  272. # Add transactions to the database. The genesis transaction is
  273. # unavailable via RPC and must be specified to enable full loading
  274. # over RPC. See Abe/genesis_tx.py.
  275. #import-tx += 01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4d04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73ffffffff0100f2052a01000000434104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac00000000
  276.  
  277. # Use default-loader=blkfile to force Abe to load data by scanning
  278. # blockfiles. Use default-loader=rpc to force the use of RPC
  279. # with a running bitcoind (or *coin daemon). This requires:
  280. #
  281. # * A readable bitcoin.conf with the RPC username and password
  282. #
  283. # * HTTP access to bitcoind (SSL is not yet supported.)
  284. #
  285. # * Bitcoin 0.8 or newer with the -txindex option. (Run bitcoind
  286. # once with -reindex if you previously ran it without -txindex.)
  287. #
  288. # * A "datadir" option with "chain":"Bitcoin" (or other chain
  289. # name)
  290. #
  291. # * The "import-tx" option specifying the genesis transaction, if
  292. # "bitcoid getrawtransaction" does not return it and it is not
  293. # in Abe/genesis_tx.py. (Bitcoin's genesis transaction is in
  294. # Abe/genesis_tx.py. Otherwise, it requires manually parsing
  295. # the first blockfile.)
  296. #
  297. # By default, Abe tries RPC and falls back to blkfile if that fails.
  298. # Use "rpc,blkfile" to specify this behaviour across upgrades, or
  299. # "default" to let Abe choose. The "loader" specified in a "datadir"
  300. # entry takes precedence over "default-loader".
  301. #
  302. #default-loader = default
Advertisement
Add Comment
Please, Sign In to add comment