Comments (6)
any progress?
from bsv.
Confirmed that this is happening. I rewrote the test using the tools used inside bsv and using a file instead of an rpc connection:
it.only('create block from hex and then serialize as hex returns the original hex', async () => {
// const height = 147056
// const blockHash = '00000000000007a678f2e1316e0f7f7acf2b967d998558aed8dadcd4430fd5f1'
const blockHexRpc = await new Promise(resolve => {
fs.readFile('test/block.txt', 'utf-8', (err, data) => {
if (err) {
throw err
}
resolve(data)
})
})
const block = Block.fromBuffer(Buffer.from(blockHexRpc, 'hex'))
const blockHexFromParsed = block.toBuffer().toString('hex')
should(blockHexFromParsed).be.eql(blockHexRpc)
})
This test fails exactly as described by @86chenjie. I'm looking for the cause.
from bsv.
@hojarasca thanks for the response. Looking forward the fix. This issue really block my progress. Thanks again.
from bsv.
@ryanxcharles can you help to check? Thanks!
from bsv.
Workaround is here : 86chenjie@fe41812
from bsv.
@86chenjie thanks for the amazing job. I'm going to check your solution next week.
from bsv.
Related Issues (20)
- Can't access bsvjs.deps.Buffer HOT 1
- please add paymail query api HOT 3
- [email protected] tx.id() not equal to rpc getblock(blockhash, 1) tx id HOT 9
- bsv 3.0 epic checklist HOT 1
- How can I create a transaction with multiple inputs and outputs? HOT 1
- Error in documentation: bsv-private-key.html HOT 1
- version compatible HOT 3
- bsv legacy failing on parse hex script
- Global export of bsv undefined since 2.0.10
- 'testnet' address generation bug? HOT 3
- Increase Block.MAX_BLOCK_SIZE
- bsv version 2 isFullySigned HOT 1
- Tx.fromHex is not equal toHex. See example.
- How to create and send transaction using bsv?
- @Limpisey168
- #1
- #1
- huge memory usage when building a transaction in browser env HOT 1
- BSV Library Version | HD Keys Confussion HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bsv.