-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove some todos * Remove one method * Reuse ManualWitness * dotnet format * Allow both tx in the same block without change order or fee * Fix p2p message serialization * Fix p2p * Fixes and IInventory * Fix akka message * Fix ut
- Loading branch information
Showing
14 changed files
with
211 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Neo.Network.P2P.Payloads; | ||
using Neo.Persistence; | ||
using System; | ||
using System.IO; | ||
|
||
namespace Neo.Oracle | ||
{ | ||
internal class ManualWitness : IVerifiable | ||
{ | ||
public Witness[] Witnesses | ||
{ | ||
get => throw new NotImplementedException(); | ||
set => throw new NotImplementedException(); | ||
} | ||
public int Size => throw new NotImplementedException(); | ||
public void Deserialize(BinaryReader reader) => throw new NotImplementedException(); | ||
public void DeserializeUnsigned(BinaryReader reader) => throw new NotImplementedException(); | ||
public void Serialize(BinaryWriter writer) => throw new NotImplementedException(); | ||
public void SerializeUnsigned(BinaryWriter writer) => throw new NotImplementedException(); | ||
|
||
private readonly UInt160[] _hashes; | ||
|
||
public ManualWitness(params UInt160[] hashes) | ||
{ | ||
_hashes = hashes ?? Array.Empty<UInt160>(); | ||
} | ||
|
||
public UInt160[] GetScriptHashesForVerifying(StoreView snapshot) | ||
{ | ||
return _hashes; | ||
} | ||
} | ||
} |
Oops, something went wrong.