Add new settings to save+display multi-algo data
-New settings allow reading of the hash algorithm used to mine a particular block for coins that support this feature and have the algorithm data stored in the raw block data -An "Algorithm" column has been added to the block page and main transaction homepage when multi-algo data is enabled -The /ext/getlasttxs api will now return the hash algorithm if reading of the multi-algo data is enabled
This commit is contained in:
@@ -66,7 +66,7 @@ mongoose.connect(dbString).then(() => {
|
||||
next_tx();
|
||||
}, timeout);
|
||||
} else {
|
||||
db.save_tx(txid, block_height, function(err, tx_has_vout) {
|
||||
db.save_tx(txid, block_height, block, function(err, tx_has_vout) {
|
||||
if (err)
|
||||
console.log(err);
|
||||
else
|
||||
|
||||
+2
-2
@@ -120,7 +120,7 @@ function update_tx_db(coin, start, end, txes, timeout, check_only, cb) {
|
||||
// check if this tx should be added to the local database
|
||||
if (tx_deleted || !tx) {
|
||||
// save the transaction to local database
|
||||
db.save_tx(txid, block_height, function(err, tx_has_vout) {
|
||||
db.save_tx(txid, block_height, block, function(err, tx_has_vout) {
|
||||
if (err)
|
||||
console.log(err);
|
||||
else
|
||||
@@ -673,7 +673,7 @@ function check_add_tx(txid, blockhash, tx_count, cb) {
|
||||
// check if the block was found
|
||||
if (block) {
|
||||
// save the tx to the local database
|
||||
db.save_tx(txid, block.height, function(save_tx_err, tx_has_vout) {
|
||||
db.save_tx(txid, block.height, block, function(save_tx_err, tx_has_vout) {
|
||||
// check if there were any save errors
|
||||
if (save_tx_err)
|
||||
console.log(save_tx_err);
|
||||
|
||||
Reference in New Issue
Block a user