Closed truedat101 closed 6 years ago
I'd like to be able to walk through your progress tomorrow, so please make sure what you have can be built.
I fixed this for you last time, but I'd like for you to be building your own code.
I'm dealing with that right now, looking into integration of keypair with the account and address when starting the shell application, it's about 40 % done, but not properly working well yet
Ok, but can you fix the build.
@pedroalvesbatista most of these things to fix were super minor, very quick. Please look at the commits.
Something is crazy with keypair.d can't find the package.
Package missing prefix. Ooops.
@pedroalvesbatista Please in the future when you are checking in skeleton code, do the following:
Alright, finishing this bug issues for build.
@pedroalvesbatista can you fix the build:
source\blockcore.d(39,6): Error: function shelld.blockcore.genesisBlock has no return statement, but is expected to return a value of type uint
source\blockcore.d(47,30): Error: 'this' is only defined in non-static member functions, not newBlock
source\blockcore.d(47,8): Error: variable Hash is shadowing variable shelld.blockcore.newBlock.Hash
source\blockcore.d(48,30): Error: 'this' is only defined in non-static member functions, not newBlock
source\blockcore.d(48,8): Error: variable previousHash is shadowing variable shelld.blockcore.newBlock.previousHash
source\blockcore.d(49,30): Error: undefined identifier nonce, did you mean variable Nonce?
source\blockcore.d(49,8): Error: variable Nonce is shadowing variable shelld.blockcore.newBlock.Nonce
source\blockcore.d(50,30): Error: 'this' is only defined in non-static member functions, not newBlock
source\blockcore.d(50,8): Error: variable Timestamp is shadowing variable shelld.blockcore.newBlock.Timestamp
source\blockcore.d(51,30): Error: 'this' is only defined in non-static member functions, not newBlock
source\blockcore.d(57,15): Error: cannot implicitly convert expression blockStatus of type bool to string
source\blockcore.d(69,21): Error: function shelld.blockcore.newBlock (string Hash, string previousHash, string Nonce, string Timestamp) is not callable using argument types ()
source\blockcore.d(80,22): Error: function deimos.sodium.crypto_generichash.crypto_generichash (ubyte* out_, ulong outlen, const(ubyte)* in_, ulong inlen, const(ubyte)* key, ulong keylen) is not callable using argument types ()
source\blockcore.d(82,16): Error: cannot implicitly convert expression Hash of type ubyte to string
source\blockcore.d(94,9): Error: 'this' is only defined in non-static member functions, not validBlock
source\blockcore.d(122,24): Error: undefined identifier nonce, did you mean function Nonce? ldc2 failed with exit code 1.
DavidJ@blackstarface MINGW64 ~/dev/projects/TheShellProject.git/shell-d/prototype (proto2-dev)
$
Working on this now
'this' is only defined in non-static member functions, not validBlock this.Block.Timestamp = currentTimestamp;
Please keep build building, following errors: