Skip to content

Commit

Permalink
Issue108 (#111)
Browse files Browse the repository at this point in the history
* polyfill for neo-python responses missing 0x in the tx vins

* Fix #108

* Update unhappy_nodes.md

Updated with current state - removed some nodes which are now healthy
  • Loading branch information
f27d authored Aug 29, 2018
1 parent 904ede6 commit cb20c9c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions neo-back/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ router.get('/unconfirmed', cache('2 seconds'), function (req, res, next) {
})
});

router.post('/unconfirmed/tx', cache('5 minutes'), function (req, res, next) {
let tx = req.body.tx;
let connection_id = req.body.connection_id;
router.post('/unconfirmed/tx/:connection_id/:tx', cache('5 minutes'), function (req, res, next) {
let tx = req.params.tx;
let connection_id = req.params.connection_id;

pool.connect()
.then(client => {
Expand Down
2 changes: 1 addition & 1 deletion neo-interface/src/components/NetworkTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class NetworkTable extends Component {


const defaultSorted = [{
dataField: 'health_score',
dataField: 'blockheight',
order: 'desc'
}];

Expand Down
3 changes: 1 addition & 2 deletions neo-interface/src/components/UnconfirmedTxInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class UnconfirmedTxInfo extends Component {
export default connect((props) => ({
unconfirmTxInfo: {
method: 'POST',
url: config.api_url.replace('/redis', '').concat(`/unconfirmed/tx`),
body: JSON.stringify({ 'tx': props.tx, 'connection_id': props.connection_id })
url: config.api_url.replace('/redis', '').concat(`/unconfirmed/tx/`).concat(props.connection_id).concat('/').concat(props.tx)
}
}))(UnconfirmedTxInfo)
2 changes: 1 addition & 1 deletion unhappy_nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Known Issues
A full resync is advised to make sure there are no artifiacts or issues. You can see this on https://happynodes.f27.ventures/table
https://github.com/neo-project/neo-cli/issues/219
- A smaller dead fork issue happened for blockheight 2670510 leading to some nodes stuck on 2670511.
These are: http://52.224.162.48:10332, http://seed7.ngd.network:10332, http://seed3.aphelion-neo.com:10332, http://seed5.ngd.network:10332, https://seed1.cityofzion.io:443
Currently only one node remains affected: http://seed3.aphelion-neo.com:10332

========================================================================

Expand Down

0 comments on commit cb20c9c

Please sign in to comment.