nodes/resolve
Excuse me, I first set up 127.0.0.1:5001, then called mine 6 times, and called /transactions/new several times in the second time to get the following block:
{
"index": 2,
"previous_hash": "5d988208db5c04a5b35e1fc32103a9bc32e884ecc70c639a53b9b2ebfbe8ad1b",
"proof": 43434,
"timestamp": 1641113376.5464342,
"transactions": [
{
"amount": 5,
"recipient": "someone-other-address",
"sender": "d4ee26eee15148ee92c6cd394edd974e"
},
{
"amount": 5,
"recipient": "someone-other-address",
"sender": "d4ee26eee15148ee92c6cd394edd974e"
},
{
"amount": 5,
"recipient": "someone-other-address",
"sender": "d4ee26eee15148ee92c6cd394edd974e"
},
{
"amount": 1,
"recipient": "419a3b3ff4024513bedbce5316f45179",
"sender": "0"
}
]
}
Then I created a new node 127.0.0.1:5001, added it to 127.0.0.1:5000 with /nodes/register, and called 127.0.0.1:5001/mine to get 18 blocks , and then call 127.0.0.1:5000 / nodes/resolve, it will determine 18 block is greater than 6 block, and update the current chains to 127.0.0.1:5001 chains, so my original chains in the second block of trans Wouldn't actions be incorrect?
How were you able to do actions from other ports? For example if you run the program using the port 5000, then how could you mine, get chain, etc using other ports. When I add a new node (5001 for example) and try to get the chain from that node (50001/chain) i get an error
How were you able to do actions from other ports? For example if you run the program using the port 5000, then how could you mine, get chain, etc using other ports. When I add a new node (5001 for example) and try to get the chain from that node (50001/chain) i get an error
You need to run two copies of blockchain.py, the first with a default port and the second with --port 5001
How can this be done? Isn't the program supposed to stop and run again with the new specified port. Hope that you can mention specific details bro. I'm using vs code. Thanks in advance.
On Sun, 2 Jan 2022, 7:47 pm sfz009900, @.***> wrote:
How were you able to do actions from other ports? For example if you run the program using the port 5000, then how could you mine, get chain, etc using other ports. When I add a new node (5001 for example) and try to get the chain from that node (50001/chain) i get an error
You need to run two copies of blockchain.py, the first with a default port and the second with --port 5001
— Reply to this email directly, view it on GitHub https://github.com/dvf/blockchain/issues/215#issuecomment-1003751470, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
How can this be done? Isn't the program supposed to stop and run again with the new specified port. Hope that you can mention specific details bro. I'm using vs code. Thanks in advance. … On Sun, 2 Jan 2022, 7:47 pm sfz009900, @.> wrote: How were you able to do actions from other ports? For example if you run the program using the port 5000, then how could you mine, get chain, etc using other ports. When I add a new node (5001 for example) and try to get the chain from that node (50001/chain) i get an error You need to run two copies of blockchain.py, the first with a default port and the second with --port 5001 — Reply to this email directly, view it on GitHub <#215 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.>
Vs I don't know, but for Python, it is possible to open both CMD's at the same time and run python36 blockchain.py and python36 blockchain.py respectively --port 5001
Can you help me bro and send a screenshot on how this can be done? It would be much appreciated :)
On Sun, 2 Jan 2022, 8:10 pm sfz009900, @.***> wrote:
How can this be done? Isn't the program supposed to stop and run again with the new specified port. Hope that you can mention specific details bro. I'm using vs code. Thanks in advance. … <#m_-7920858052792816002_> On Sun, 2 Jan 2022, 7:47 pm sfz009900, @.> wrote: How were you able to do actions from other ports? For example if you run the program using the port 5000, then how could you mine, get chain, etc using other ports. When I add a new node (5001 for example) and try to get the chain from that node (50001/chain) i get an error You need to run two copies of blockchain.py, the first with a default port and the second with --port 5001 — Reply to this email directly, view it on GitHub <#215 (comment) https://github.com/dvf/blockchain/issues/215#issuecomment-1003751470>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.>
Vs I don't know, but for Python, it is possible to open both CMD's at the same time and run python36 blockchain.py and python36 blockchain.py respectively --port 5001
— Reply to this email directly, view it on GitHub https://github.com/dvf/blockchain/issues/215#issuecomment-1003754271, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWWAZXLNKXNUXQVQ2D2UI3DUUCIIRANCNFSM5LDPU4YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
Can you help me bro and send a screenshot on how this can be done? It would be much appreciated :) … On Sun, 2 Jan 2022, 8:10 pm sfz009900, @.> wrote: How can this be done? Isn't the program supposed to stop and run again with the new specified port. Hope that you can mention specific details bro. I'm using vs code. Thanks in advance. … <#m_-7920858052792816002_> On Sun, 2 Jan 2022, 7:47 pm sfz009900, @.> wrote: How were you able to do actions from other ports? For example if you run the program using the port 5000, then how could you mine, get chain, etc using other ports. When I add a new node (5001 for example) and try to get the chain from that node (50001/chain) i get an error You need to run two copies of blockchain.py, the first with a default port and the second with --port 5001 — Reply to this email directly, view it on GitHub <#215 (comment) <#215 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.andro
id&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.> Vs I don't know, but for Python, it is possible to open both CMD's at the same time and run python36 blockchain.py and python36 blockchain.py respectively --port 5001 — Reply to this email directly, view it on GitHub <#215 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWWAZXLNKXNUXQVQ2D2UI3DUUCIIRANCNFSM5LDPU4YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.**>
Thanks man. I don't know what can I do in return. I really appreciate what you are doing. I just want to ask if nodes/resolve is working for you. I get an error when I run it
On Sun, 2 Jan 2022, 8:21 pm sfz009900, @.***> wrote:
Can you help me bro and send a screenshot on how this can be done? It would be much appreciated :) … <#m_8477056751184114414_> On Sun, 2 Jan 2022, 8:10 pm sfz009900, @.
> wrote: How can this be done? Isn't the program supposed to stop and run again with the new specified port. Hope that you can mention specific details bro. I'm using vs code. Thanks in advance. … <#m_-7920858052792816002_> On Sun, 2 Jan 2022, 7:47 pm sfz009900, @.> wrote: How were you able to do actions from other ports? For example if you run the program using the port 5000, then how could you mine, get chain, etc using other ports. When I add a new node (5001 for example) and try to get the chain from that node (50001/chain) i get an error You need to run two copies of blockchain.py, the first with a default port and the second with --port 5001 — Reply to this email directly, view it on GitHub <#215 https://github.com/dvf/blockchain/issues/215 (comment) <#215 (comment) https://github.com/dvf/blockchain/issues/215#issuecomment-1003751470>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.andro https://play.google.com/store/apps/details?id=com.github.andro [image: QQ图片20220103022010] https://user-images.githubusercontent.com/19549361/147885505-988645c8-371b-462c-9c16-676f834a62f6.png id&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.> Vs I don't know, but for Python, it is possible to open both CMD's at the same time and run python36 blockchain.py and python36 blockchain.py respectively --port 5001 — Reply to this email directly, view it on GitHub <#215 (comment) https://github.com/dvf/blockchain/issues/215#issuecomment-1003754271>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWWAZXLNKXNUXQVQ2D2UI3DUUCIIRANCNFSM5LDPU4YQ https://github.com/notifications/unsubscribe-auth/AWWAZXLNKXNUXQVQ2D2UI3DUUCIIRANCNFSM5LDPU4YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.**>
— Reply to this email directly, view it on GitHub https://github.com/dvf/blockchain/issues/215#issuecomment-1003755519, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWWAZXKQXZO2BQXKQZVF5ZLUUCJRXANCNFSM5LDPU4YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
It worked thank you. One issue remained is that after I register a node, the nodes/resolve stops working when I call it. I get an error 500. When I checked the terminal there was a bunch of errors
On Sun, 2 Jan 2022, 8:21 pm sfz009900, @.***> wrote:
Can you help me bro and send a screenshot on how this can be done? It would be much appreciated :) … <#m_8477056751184114414_> On Sun, 2 Jan 2022, 8:10 pm sfz009900, @.
> wrote: How can this be done? Isn't the program supposed to stop and run again with the new specified port. Hope that you can mention specific details bro. I'm using vs code. Thanks in advance. … <#m_-7920858052792816002_> On Sun, 2 Jan 2022, 7:47 pm sfz009900, @.> wrote: How were you able to do actions from other ports? For example if you run the program using the port 5000, then how could you mine, get chain, etc using other ports. When I add a new node (5001 for example) and try to get the chain from that node (50001/chain) i get an error You need to run two copies of blockchain.py, the first with a default port and the second with --port 5001 — Reply to this email directly, view it on GitHub <#215 https://github.com/dvf/blockchain/issues/215 (comment) <#215 (comment) https://github.com/dvf/blockchain/issues/215#issuecomment-1003751470>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ https://github.com/notifications/unsubscribe-auth/AWWAZXLHP3YXRNS4RXGV7ZDUUCFUZANCNFSM5LDPU4YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.andro https://play.google.com/store/apps/details?id=com.github.andro [image: QQ图片20220103022010] https://user-images.githubusercontent.com/19549361/147885505-988645c8-371b-462c-9c16-676f834a62f6.png id&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.> Vs I don't know, but for Python, it is possible to open both CMD's at the same time and run python36 blockchain.py and python36 blockchain.py respectively --port 5001 — Reply to this email directly, view it on GitHub <#215 (comment) https://github.com/dvf/blockchain/issues/215#issuecomment-1003754271>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWWAZXLNKXNUXQVQ2D2UI3DUUCIIRANCNFSM5LDPU4YQ https://github.com/notifications/unsubscribe-auth/AWWAZXLNKXNUXQVQ2D2UI3DUUCIIRANCNFSM5LDPU4YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.**>
— Reply to this email directly, view it on GitHub https://github.com/dvf/blockchain/issues/215#issuecomment-1003755519, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWWAZXKQXZO2BQXKQZVF5ZLUUCJRXANCNFSM5LDPU4YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
id&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub