dvf / dvf/blockchain

CreateTransaction(sender: "0", recipient: NodeId, amount: 1); in C# Implementation

Open
#210 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
8k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

Dear Sir,
In C# project for Blockchain...

In CreateTransaction(sender: "0", recipient: NodeId, amount: 1);
1. why the sender is "0" ??
Also after running http://localhost:12345/transactions/new{ "Amount":123, "Recipient":"ebeabf5cc1d54abdbca5a8fe9493b479", "Sender":"31de2e0ef1cb4937830fcfd5d2b3b24f" } nothing happens also after http://localhost:12345/mine amount in transaction is not seen in the browser The following lines
2. are seen and amount is always "1" why ???
Also Transactions vanish after you restart the machine or project...
3. How to maintain the transactions continuously???

{"chain":[{"Index":0,"Timestamp":"2021-09-30T10:52:20.0890196Z","Transactions":[],"Proof":100,"PreviousHash":"1"},{"Index":1,"Timestamp":"2021-09-30T10:55:07.1326461Z","Transactions":[{"Amount":1,"Recipient":"b43a22a573e6430499975c6c67b7894e","Sender":"0"}],"Proof":14342,"PreviousHash":"9ad382b9de9fd575600e33c993228eb894dbb246725eb224a22c5936b7b26e8a"},{"Index":2,"Timestamp":"2021-09-30T10:57:59.0589783Z","Transactions":[{"Amount":1,"Recipient":"b43a22a573e6430499975c6c67b7894e","Sender":"0"}],"Proof":95333,"PreviousHash":"14393b81cd59fd96ce79538640c606bb3eb0a9ac87615b0a20cf483812ac41d9"},{"Index":3,"Timestamp":"2021-09-30T12:20:12.0325329Z","Transactions":[{"Amount":1,"Recipient":"b43a22a573e6430499975c6c67b7894e","Sender":"0"}],"Proof":32512,"PreviousHash":"3d6a5af0f8d75eb1d99f151a0926e7af61e3ff8c49245f6e3a6c5748209340e9"},{"Index":4,"Timestamp":"2021-09-30T12:20:27.2176191Z","Transactions":[{"Amount":1,"Recipient":"b43a22a573e6430499975c6c67b7894e","Sender":"0"}],"Proof":101085,"PreviousHash":"1930e04fd3a53824babadf9267aa8bbccf45ff2b64a61b68aed6540b8ea08150"}],"length":5}

with regards
Ganesh

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.