Git Product home page Git Product logo

ark-net's People

Contributors

abalalojik avatar air1one avatar boldninja avatar ciband avatar dnovacik avatar fix avatar kristjank avatar sharkdev-a avatar travisdmathis avatar trigger67 avatar ukyuu avatar waffle-iron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ark-net's Issues

default.conf missing

The dead link leads to nowhere, and the reference thus is a dead link.
Could you either update the link or add the file?

Build fail on macOS and win10

When building from VS on both win10 and macOS platform I receive build error related to the main ark-net solution. Here is the console output:

Target PostBuildEvent:
    REM Create a NuGet package for this project and place the .nupkg file in the project's output directory.
    REM If you see this in Visual Studio's Error List window, check the Output window's Build tab for the actual error.
    ECHO Creating NuGet package in Post-Build event...
    PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '/Users/doob/Desktop/UnityBlock/ark-net/ark-net/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1' -ProjectFilePath '/Users/doob/Desktop/UnityBlock/ark-net/ark-net/ark-net.csproj' -OutputDirectory '/Users/doob/Desktop/UnityBlock/ark-net/ark-net/bin/Debug/' -BuildConfiguration 'Debug' -BuildPlatform 'AnyCPU'"
    /var/folders/6r/wkww53sj6gbf1cpmj2lq7ygr0000gn/T/tmp69086b90510749819e89e1ac125a4306.exec.cmd: line 5: unexpected EOF while looking for matching `''
    /var/folders/6r/wkww53sj6gbf1cpmj2lq7ygr0000gn/T/tmp69086b90510749819e89e1ac125a4306.exec.cmd: line 6: syntax error: unexpected end of file
    /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5036,5): error MSB3073: The command "REM Create a NuGet package for this project and place the .nupkg file in the project's output directory.
    /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5036,5): error MSB3073: REM If you see this in Visual Studio's Error List window, check the Output window's Build tab for the actual error.
    /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5036,5): error MSB3073: ECHO Creating NuGet package in Post-Build event...
    /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5036,5): error MSB3073: PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '/Users/doob/Desktop/UnityBlock/ark-net/ark-net/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1' -ProjectFilePath '/Users/doob/Desktop/UnityBlock/ark-net/ark-net/ark-net.csproj' -OutputDirectory '/Users/doob/Desktop/UnityBlock/ark-net/ark-net/bin/Debug/' -BuildConfiguration 'Debug' -BuildPlatform 'AnyCPU'"" exited with code 1.
Done building target "PostBuildEvent" in project "ark-net.csproj" -- FAILED.

Done building project "ark-net.csproj" -- FAILED.

Build FAILED.

Core/PeerApi.cs(101,21,101,26): warning CS0162: Unreachable code detected
/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5036,5): error MSB3073: The command "REM Create a NuGet package for this project and place the .nupkg file in the project's output directory.
/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5036,5): error MSB3073: REM If you see this in Visual Studio's Error List window, check the Output window's Build tab for the actual error.
/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5036,5): error MSB3073: ECHO Creating NuGet package in Post-Build event...
/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5036,5): error MSB3073: PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '/Users/doob/Desktop/UnityBlock/ark-net/ark-net/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1' -ProjectFilePath '/Users/doob/Desktop/UnityBlock/ark-net/ark-net/ark-net.csproj' -OutputDirectory '/Users/doob/Desktop/UnityBlock/ark-net/ark-net/bin/Debug/' -BuildConfiguration 'Debug' -BuildPlatform 'AnyCPU'"" exited with code 1.
    1 Warning(s)
    1 Error(s)

PeerCleaning and optimization

Hi @sharkdev-j @sharkdev-a ,

only one seed peer is usually not a good idea. I know there has been lately an issue with a lot of them. Please take a look at the clean healthy SEED peer list - and include them from here:
https://github.com/kristjank/ark-go/blob/master/core/arkenv.go#L206

After you randomly select one SEED peer... you must build up the ACTIVE healthy peer list to work with, meaning:

connect to randomly selected SEED peer from the SEED list
call peer/list from that peer
clean the received peer/list by (version= 1.0.1 - mainnet, status=OK, and find the max height peer, and then select just the ones (let's say 10 blocks smaller than max height peer)
save filtered the peer list globaly so it can be used on the API for later on (multi broadcasts and switch peer, etc)...
--I use this in arkgo now - and I usually clean the list from 150 to 70/60 healthy peers to work with...

Comment the whole API

Comment the code, give more information about the different functions.
I am already on that.

Update properties in models to use correct types

ArkModel

  1. Change UnconfirmedBalance & Balance to BigInteger instead of string in ArkAccount

ArkBlock

  1. Change PreviousBlock to int instead of string
  2. Add reward as BigInteger
  3. Add Confirmations as int
  4. Add TotalForged as BigInteger

ArkPeer

  1. Add Errors as int

DelegateVoters

  1. Change Balance to BigInteger instead of string

PeerHeader

  1. Change PreviousBlock to int instead of string

Improve BlockService

Add the following methods...

  1. GetEpoch
  2. GetHeight
  3. GetNetHash
  4. GetFees
  5. GetMilestone
  6. GetReward
  7. GetSupply
  8. GetStatus

Improve DelegateService

Add the following methods...

  1. GetFee
  2. GetForgedByAccount (amount of ark forged by account). Need to supply generatorPublicKey as param
  3. GetNextForgers
  4. GetTotalVoteArk

Network Improvement peer selection and filter

When connection to seed peer and receiving a list of peers, filter them according to:

-status OK
-version 1.1.0
-find the max height peer (and remove peers more than 10 blocks behind)

Store this filtered list and use it as clean peer list.

rename ARKError

Class name is misleading and also the ones that inherit it... it' looks...

Maybe a rename from ArkError - ArkResponseStatus? or something... as you also have success variable...
Then you have to align with ArkTransactionResponse - I think thouse two classes server same purpuose?

@sharkdev-j @dnovacik

Improve account controller usability

  1. Make private variables for passPhrase & secondPassPhrase
  2. return all account info to _account in constructor using AccountService.GetByAddress.
  3. Remove all passPhrase & secondPassPhrase parameters in all methods in AccountController. Replace with the _ variables

Improve AccountService

Add the following methods...

  1. GetDelegates. Need to supply address
  2. GetTop. Pass nullable param limit & offset

Review the ReadMe

Update the info on the Read-me, do some re-up to make it current with the API.

Create until class ArkStaticStrings

  1. Inside create class called ArkApiPaths and put in all the string path api calls in there. This will make the path api calls exposed to devs and not hard coded strings within the lib. A path example is '/peer/status'.

  2. Replace all hard coded paths with static string variables.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.