add fixmes for fields that aren't yet matching lbrycrd
This commit is contained in:
parent
a9a4f87628
commit
9525c86a78
1 changed files with 4 additions and 4 deletions
|
@ -93,14 +93,14 @@ class Tx(typing.NamedTuple):
|
||||||
"version": self.version,
|
"version": self.version,
|
||||||
"size": len(self.raw),
|
"size": len(self.raw),
|
||||||
"vsize": len(self.raw),
|
"vsize": len(self.raw),
|
||||||
"weight": None,
|
"weight": None, # FIXME: add this
|
||||||
"locktime": self.locktime,
|
"locktime": self.locktime,
|
||||||
"vin": [
|
"vin": [
|
||||||
{
|
{
|
||||||
"txid": txin.prev_hash[::-1].hex(),
|
"txid": txin.prev_hash[::-1].hex(),
|
||||||
"vout": txin.prev_idx,
|
"vout": txin.prev_idx,
|
||||||
"scriptSig": {
|
"scriptSig": {
|
||||||
"asm": None,
|
"asm": None, # FIXME: add this
|
||||||
"hex": txin.script.hex()
|
"hex": txin.script.hex()
|
||||||
},
|
},
|
||||||
"sequence": txin.sequence
|
"sequence": txin.sequence
|
||||||
|
@ -111,9 +111,9 @@ class Tx(typing.NamedTuple):
|
||||||
"value": txo.value / 1E8,
|
"value": txo.value / 1E8,
|
||||||
"n": txo.nout,
|
"n": txo.nout,
|
||||||
"scriptPubKey": {
|
"scriptPubKey": {
|
||||||
"asm": None,
|
"asm": None, # FIXME: add this
|
||||||
"hex": txo.pk_script.hex(),
|
"hex": txo.pk_script.hex(),
|
||||||
"reqSigs": 1,
|
"reqSigs": 1, # FIXME: what if it isn't 1?
|
||||||
"type": "nonstandard" if (txo.is_support or txo.is_claim or txo.is_update) else "pubkeyhash" if txo.pubkey_hash else "scripthash",
|
"type": "nonstandard" if (txo.is_support or txo.is_claim or txo.is_update) else "pubkeyhash" if txo.pubkey_hash else "scripthash",
|
||||||
"addresses": [
|
"addresses": [
|
||||||
coin.claim_address_handler(txo)
|
coin.claim_address_handler(txo)
|
||||||
|
|
Loading…
Reference in a new issue