core: print txes in LE in TestCreateBasicChain
LE is human and RPC compatible representation, BE hex is almost unusable.
This commit is contained in:
parent
bf6525e54d
commit
0a35ee00c6
1 changed files with 2 additions and 2 deletions
|
@ -384,7 +384,7 @@ func TestCreateBasicChain(t *testing.T) {
|
||||||
|
|
||||||
b = bc.newBlock(initTx, transferTx)
|
b = bc.newBlock(initTx, transferTx)
|
||||||
require.NoError(t, bc.AddBlock(b))
|
require.NoError(t, bc.AddBlock(b))
|
||||||
t.Logf("recieveRublesTx: %v", transferTx.Hash().StringBE())
|
t.Logf("recieveRublesTx: %v", transferTx.Hash().StringLE())
|
||||||
|
|
||||||
transferTx = newNEP5Transfer(sh, priv0.GetScriptHash(), priv1.GetScriptHash(), 123)
|
transferTx = newNEP5Transfer(sh, priv0.GetScriptHash(), priv1.GetScriptHash(), 123)
|
||||||
transferTx.Nonce = getNextNonce()
|
transferTx.Nonce = getNextNonce()
|
||||||
|
@ -403,7 +403,7 @@ func TestCreateBasicChain(t *testing.T) {
|
||||||
|
|
||||||
b = bc.newBlock(transferTx)
|
b = bc.newBlock(transferTx)
|
||||||
require.NoError(t, bc.AddBlock(b))
|
require.NoError(t, bc.AddBlock(b))
|
||||||
t.Logf("sendRublesTx: %v", transferTx.Hash().StringBE())
|
t.Logf("sendRublesTx: %v", transferTx.Hash().StringLE())
|
||||||
|
|
||||||
if saveChain {
|
if saveChain {
|
||||||
outStream, err := os.Create(prefix + "testblocks.acc")
|
outStream, err := os.Create(prefix + "testblocks.acc")
|
||||||
|
|
Loading…
Reference in a new issue