From 2fb7c29781510c2ba590473542543ff36de0199e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 27 Jan 2016 19:59:31 -0800 Subject: [PATCH] docs: more fixes. --- README.md | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 77f7fdc0..97d25c92 100644 --- a/README.md +++ b/README.md @@ -561,7 +561,7 @@ entire linked list. `isSuperMajority`). - __isUpgraded(version)__ - Check if block version upgrades the blockchain (calls `isSuperMajority`). -_ __isSuperMajority(version, required)__ - Calculate if the last +- __isSuperMajority(version, required)__ - Calculate if the last `majorityWindow` blocks are of `version`. - __toJSON()__ - Return serialized ChainBlock in JSON format. - __toRaw()__ - Return serialized ChainBlock in binary ChainDB format. @@ -1235,17 +1235,17 @@ Usage: `bcoin.tx([options], [block])` - __output(options), output(output), output(address, value)__ - Add an output to the transaction. - `options` can be in the form of: - { - value: [satoshis/big number], - script: [deserialized script], - address: [pubkey address or scripthash address], - keys: [array of keys], - m: [m value], - n: [n value], - flags: [nulldata], - scripthash: [true or false], - lock: [locktime for checklocktimeverify] - } + { + value: [satoshis/big number], + script: [deserialized script], + address: [pubkey address or scripthash address], + keys: [array of keys], + m: [m value], + n: [n value], + flags: [nulldata], + scripthash: [true or false], + lock: [locktime for checklocktimeverify] + } - __scriptOutput(index/output, options)__ - Compile an output script for the output based on the same options `output()` handles. - __signatureHash(index/input, s, type)__ - Return the to-be-signed hash of the @@ -1267,14 +1267,14 @@ Usage: `bcoin.tx([options], [block])` total value required for the transaction. A hard `fee` can be passed in (satoshis/big number) which will skip the fee calculation. Calculates the necessary change. Returns an object in the form of: - { - inputs: [array in inputs to add], - change: [change in satoshis (big number)], - cost: [total cost minus fee in satoshis (big number)], - fee: [fee for transaction in satoshis (big number)], - total: [total cost including fee in satoshis (big number)], - kb: [total kb for fee calculation] - } + { + inputs: [array in inputs to add], + change: [change in satoshis (big number)], + cost: [total cost minus fee in satoshis (big number)], + fee: [fee for transaction in satoshis (big number)], + total: [total cost including fee in satoshis (big number)], + kb: [total kb for fee calculation] + } `inputs` will be `null` if not enough funds were available. __NOTE:__ `getUnspent()` should only be called once all outputs have been added. - __fillUnspent(unspent, [changeAddress], [fee])__ - Calls `getUnspent()` and