Home
last modified time | relevance | path

Searched refs:auxpow (Results 1 – 25 of 57) sorted by relevance

123

/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/test/functional/test_framework/
H A Dauxpow.py57 auxpow = codecs.encode (tx, 'ascii')
58 auxpow += blockhash
59 auxpow += b"00"
60 auxpow += b"00" * 4
63 auxpow += b"00"
64 auxpow += b"00" * 4
65 auxpow += header
67 return auxpow.decode ("ascii")
H A Dauxpow_testing.py12 from test_framework import auxpow
20 (tx, header) = auxpow.constructAuxpow (block)
22 return auxpow.finishAuxpow (tx, header)
42 target = auxpow.reverseHex (auxblock['_target'])
78 blockhash = auxpow.doubleHashHex (hexData)
/dports/net-p2p/namecoin-daemon/namecoin-core-nc0.21.0.1/test/functional/test_framework/
H A Dauxpow.py57 auxpow = codecs.encode (tx, 'ascii')
58 auxpow += blockhash
59 auxpow += b"00"
60 auxpow += b"00" * 4
63 auxpow += b"00"
64 auxpow += b"00" * 4
65 auxpow += header
67 return auxpow.decode ("ascii")
H A Dauxpow_testing.py12 from test_framework import auxpow
20 (tx, header) = auxpow.constructAuxpow (block)
22 return auxpow.finishAuxpow (tx, header)
42 target = auxpow.reverseHex (auxblock['_target'])
78 blockhash = auxpow.doubleHashHex (hexData)
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/test/functional/test_framework/
H A Dauxpow.py57 auxpow = codecs.encode (tx, 'ascii')
58 auxpow += blockhash
59 auxpow += b"00"
60 auxpow += b"00" * 4
63 auxpow += b"00"
64 auxpow += b"00" * 4
65 auxpow += header
67 return auxpow.decode ("ascii")
H A Dauxpow_testing.py12 from test_framework import auxpow
20 (tx, header) = auxpow.constructAuxpow (block)
22 return auxpow.finishAuxpow (tx, header)
42 target = auxpow.reverseHex (auxblock['_target'])
78 blockhash = auxpow.doubleHashHex (hexData)
/dports/net-p2p/namecoin-daemon/namecoin-core-nc0.21.0.1/src/primitives/
H A Dblock.h29 std::shared_ptr<CAuxPow> auxpow;
42 SER_READ(obj, obj.auxpow = std::make_shared<CAuxPow>()); in SERIALIZE_METHODS()
43 assert(obj.auxpow != nullptr); in SERIALIZE_METHODS()
44 READWRITE(*obj.auxpow); in SERIALIZE_METHODS()
47 SER_READ(obj, obj.auxpow.reset()); in SERIALIZE_METHODS()
54 auxpow.reset(); in SetNull()
107 block.auxpow = auxpow; in GetBlockHeader()
H A Dblock.cpp15 auxpow.reset(apow.release()); in SetAuxpow()
19 auxpow.reset(); in SetAuxpow()
H A Dpureheader.h127 inline void SetAuxpowVersion (bool auxpow) in SetAuxpowVersion() argument
129 if (auxpow) in SetAuxpowVersion()
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/src/primitives/
H A Dblock.h29 std::shared_ptr<CAuxPow> auxpow;
42 SER_READ(obj, obj.auxpow = std::make_shared<CAuxPow>()); in SERIALIZE_METHODS()
43 assert(obj.auxpow != nullptr); in SERIALIZE_METHODS()
44 READWRITE(*obj.auxpow); in SERIALIZE_METHODS()
47 SER_READ(obj, obj.auxpow.reset()); in SERIALIZE_METHODS()
54 auxpow.reset(); in SetNull()
107 block.auxpow = auxpow; in GetBlockHeader()
H A Dblock.cpp15 auxpow.reset(apow.release()); in SetAuxpow()
19 auxpow.reset(); in SetAuxpow()
/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/src/primitives/
H A Dblock.h29 std::shared_ptr<CAuxPow> auxpow;
42 SER_READ(obj, obj.auxpow = std::make_shared<CAuxPow>()); in SERIALIZE_METHODS()
43 assert(obj.auxpow != nullptr); in SERIALIZE_METHODS()
44 READWRITE(*obj.auxpow); in SERIALIZE_METHODS()
47 SER_READ(obj, obj.auxpow.reset()); in SERIALIZE_METHODS()
54 auxpow.reset(); in SetNull()
107 block.auxpow = auxpow; in GetBlockHeader()
H A Dblock.cpp15 auxpow.reset(apow.release()); in SetAuxpow()
19 auxpow.reset(); in SetAuxpow()
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/test/functional/
H A Dauxpow_zerohash.py70 blk.auxpow.hashBlock = 12345678
80 assert_equal (gotBlk.auxpow.hashBlock, 0)
84 assert_equal (gotBlk.auxpow.hashBlock, 0)
88 blk.auxpow.hashBlock = 0
94 blk.auxpow.hashBlock = 0
100 blk.auxpow.nIndex = 42
106 blk.auxpow.nIndex = 42
128 block.auxpow = CAuxPow ()
129 block.auxpow.deserialize (BytesIO (hex_str_to_bytes (auxpowHex)))
/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/test/functional/
H A Dauxpow_zerohash.py70 blk.auxpow.hashBlock = 12345678
80 assert_equal (gotBlk.auxpow.hashBlock, 0)
84 assert_equal (gotBlk.auxpow.hashBlock, 0)
88 blk.auxpow.hashBlock = 0
94 blk.auxpow.hashBlock = 0
100 blk.auxpow.nIndex = 42
106 blk.auxpow.nIndex = 42
128 block.auxpow = CAuxPow ()
129 block.auxpow.deserialize (BytesIO (hex_str_to_bytes (auxpowHex)))
/dports/net-p2p/namecoin-daemon/namecoin-core-nc0.21.0.1/test/functional/
H A Dauxpow_zerohash.py70 blk.auxpow.hashBlock = 12345678
80 assert_equal (gotBlk.auxpow.hashBlock, 0)
84 assert_equal (gotBlk.auxpow.hashBlock, 0)
88 blk.auxpow.hashBlock = 0
94 blk.auxpow.hashBlock = 0
100 blk.auxpow.nIndex = 42
106 blk.auxpow.nIndex = 42
128 block.auxpow = CAuxPow ()
129 block.auxpow.deserialize (BytesIO (hex_str_to_bytes (auxpowHex)))
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/contrib/auxpow/
H A Dgetwork-wrapper.py26 import auxpow
66 (tx, hdr) = auxpow.constructAuxpow (auxblock['hash'])
73 formatted = auxpow.getworkByteswap (hdrBytes)
92 fixedBytes = auxpow.getworkByteswap (dataBytes[:80])
95 auxpowHex = auxpow.finishAuxpow (w['tx'], hdrHex)
/dports/net-p2p/namecoin-daemon/namecoin-core-nc0.21.0.1/contrib/auxpow/
H A Dgetwork-wrapper.py26 import auxpow
66 (tx, hdr) = auxpow.constructAuxpow (auxblock['hash'])
73 formatted = auxpow.getworkByteswap (hdrBytes)
92 fixedBytes = auxpow.getworkByteswap (dataBytes[:80])
95 auxpowHex = auxpow.finishAuxpow (w['tx'], hdrHex)
/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/contrib/auxpow/
H A Dgetwork-wrapper.py26 import auxpow
66 (tx, hdr) = auxpow.constructAuxpow (auxblock['hash'])
73 formatted = auxpow.getworkByteswap (hdrBytes)
92 fixedBytes = auxpow.getworkByteswap (dataBytes[:80])
95 auxpowHex = auxpow.finishAuxpow (w['tx'], hdrHex)
/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/
H A DTODO7 - no need to disallow auxpow parent blocks with auxpow-flag in the version
8 any more; instead, the auxpow is simply never loaded for them
10 - restrict auxpow size / coinbase tx size?
/dports/net-p2p/namecoin-daemon/namecoin-core-nc0.21.0.1/
H A DTODO7 - no need to disallow auxpow parent blocks with auxpow-flag in the version
8 any more; instead, the auxpow is simply never loaded for them
10 - restrict auxpow size / coinbase tx size?
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/
H A DTODO7 - no need to disallow auxpow parent blocks with auxpow-flag in the version
8 any more; instead, the auxpow is simply never loaded for them
10 - restrict auxpow size / coinbase tx size?
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/src/
H A Dauxpow.cpp194 std::unique_ptr<CAuxPow> auxpow(new CAuxPow (std::move (coinbaseRef))); in createAuxPow() local
195 assert (auxpow->vMerkleBranch.empty ()); in createAuxPow()
196 assert (auxpow->vChainMerkleBranch.empty ()); in createAuxPow()
197 auxpow->nChainIndex = 0; in createAuxPow()
198 auxpow->parentBlock = parent; in createAuxPow()
200 return auxpow; in createAuxPow()
/dports/net-p2p/namecoin-daemon/namecoin-core-nc0.21.0.1/src/
H A Dauxpow.cpp194 std::unique_ptr<CAuxPow> auxpow(new CAuxPow (std::move (coinbaseRef))); in createAuxPow() local
195 assert (auxpow->vMerkleBranch.empty ()); in createAuxPow()
196 assert (auxpow->vChainMerkleBranch.empty ()); in createAuxPow()
197 auxpow->nChainIndex = 0; in createAuxPow()
198 auxpow->parentBlock = parent; in createAuxPow()
200 return auxpow; in createAuxPow()
/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/src/
H A Dauxpow.cpp194 std::unique_ptr<CAuxPow> auxpow(new CAuxPow (std::move (coinbaseRef))); in createAuxPow() local
195 assert (auxpow->vMerkleBranch.empty ()); in createAuxPow()
196 assert (auxpow->vChainMerkleBranch.empty ()); in createAuxPow()
197 auxpow->nChainIndex = 0; in createAuxPow()
198 auxpow->parentBlock = parent; in createAuxPow()
200 return auxpow; in createAuxPow()

123